<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Retrieving data from an API in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813802#M66479</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;see my script here.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Jun 2021 06:35:33 GMT</pubDate>
    <dc:creator>WernerDC</dc:creator>
    <dc:date>2021-06-09T06:35:33Z</dc:date>
    <item>
      <title>Retrieving data from an API</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1812118#M66250</link>
      <description>&lt;P&gt;Hi Guys, I need to retrieve data from an API. Problem is I can only call the data weekly!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have to go into the API to change the Date to the next week after every reload. How can I automate this? And is it possible when all the historic data is retrieved that I can reload the newest week each week?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope I make sense.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Kind regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 14:41:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1812118#M66250</guid>
      <dc:creator>WernerDC</dc:creator>
      <dc:date>2021-06-01T14:41:07Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from an API</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1812174#M66258</link>
      <description>&lt;P&gt;Does the API dialog generate a FROM url/parameter for the Load statement?&amp;nbsp; If you will post that FROM we can help you with an expression to set it to a dynamic week.&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;</description>
      <pubDate>Tue, 01 Jun 2021 16:15:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1812174#M66258</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2021-06-01T16:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from an API</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813322#M66401</link>
      <description />
      <pubDate>Mon, 07 Jun 2021 09:41:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813322#M66401</guid>
      <dc:creator>WernerDC</dc:creator>
      <dc:date>2021-06-07T09:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from an API</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813802#M66479</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6148"&gt;@rwunderlich&lt;/a&gt;&amp;nbsp;see my script here.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 06:35:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813802#M66479</guid>
      <dc:creator>WernerDC</dc:creator>
      <dc:date>2021-06-09T06:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieving data from an API</title>
      <link>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813817#M66484</link>
      <description>&lt;P&gt;Hello Werner you can loop API calls using the "WITH CONNECTION" feature of the script.&lt;/P&gt;&lt;P&gt;You need to delete the last semicolon and put your call with the variables inserted in the URL below, between parenthesis. Take a look at this example calling SAP HANA (You can nest loops of course)&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;for i=1 to 12&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;let vmonth=num($(i),'00');&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;RestConnectorMasterTable:&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;SQL SELECT&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;[...]&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;FROM XML "feed" PK "__KEY_feed"&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;WITH CONNECTION&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;(&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier" size="2"&gt;URL "&lt;A href="https://xxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/XXXXXXX/XXXXX?$filter=FiscalPeriod" target="_blank" rel="noopener"&gt;https://xxxxx-api.s4hana.ondemand.com/sap/opu/odata/sap/XXXXXXX/XXXXX?$filter=FiscalPeriod&lt;/A&gt; eq '$(vmonth)'");&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;next;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is a POST call, you need to add parameters in the section instead of in the URL, check Steve's Dark reply here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/POST-Data-using-REST-Connector/td-p/1447843" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/POST-Data-using-REST-Connector/td-p/1447843&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also an implementation using a variable filled with the entire request body:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-POST-method-QlikSense/td-p/1216415" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/REST-connection-POST-method-QlikSense/td-p/1216415&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Rest-Connector-Post-Method/td-p/1412475" target="_blank" rel="noopener"&gt;https://community.qlik.com/t5/Connectivity-Data-Prep/Qlik-Rest-Connector-Post-Method/td-p/1412475&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Jun 2021 07:31:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Retrieving-data-from-an-API/m-p/1813817#M66484</guid>
      <dc:creator>pabloviera</dc:creator>
      <dc:date>2021-06-09T07:31:33Z</dc:date>
    </item>
  </channel>
</rss>

