<?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: [resolved] How to use tRest (JSON URL) in a loop? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340304#M108345</link>
    <description>Page unable to open.</description>
    <pubDate>Sun, 29 Jul 2018 13:18:22 GMT</pubDate>
    <dc:creator>arpiitv</dc:creator>
    <dc:date>2018-07-29T13:18:22Z</dc:date>
    <item>
      <title>[resolved] How to use tRest (JSON URL) in a loop?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340301#M108342</link>
      <description>I've the following job wich works ok: tREST_1 &amp;gt; tXMLMap_1 &amp;gt; tExtractJSONFields_1 &amp;gt; tLog
&lt;BR /&gt;The problem I'm facing is that the tRest URL will return a body in which 100 records are returned (in the data section) but also a new URL (in the pagination section) to retrieve the next 100 records (if resultset contains more then 100 records). How can I loop this so I retrieve all the records I'm looking for?
&lt;BR /&gt;The order of the job should be:
&lt;BR /&gt;
&lt;BR /&gt;retrieve data of first tRest (tExtractJSONFields Loop Jsonpath query: "$.data
&lt;BR /&gt;"
&lt;BR /&gt;extract the fields
&lt;BR /&gt;evaluate if body contains column "next" in the pagination section&amp;nbsp;(tExtractJSONFields Loop Jsonpath query: "$.pagination"
&lt;BR /&gt;if true load this URL and retrieve the next 100 records
&lt;BR /&gt;loop while pagination section contains column "next"
&lt;BR /&gt;
&lt;BR /&gt;Thnx Remco</description>
      <pubDate>Fri, 15 Apr 2016 08:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340301#M108342</guid>
      <dc:creator>Remco1</dc:creator>
      <dc:date>2016-04-15T08:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use tRest (JSON URL) in a loop?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340302#M108343</link>
      <description>This isn't exactly what you want to do, but it is close enough. I have written a tutorial on getting spotify data from Facebook. This requires pagination and looping through REST calls. The tutorial is 
&lt;A href="http://rilhia.com/tutorials/using-talend-get-your-spotify-listening-history-facebook" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;. The section you want starts with the title "The&amp;nbsp;
&lt;FONT size="2"&gt;&lt;FONT face="'Helvetica Neue', Helvetica, Arial, sans-serif"&gt;GetMySpotifyListeningHistory Job".&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;</description>
      <pubDate>Fri, 15 Apr 2016 11:01:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340302#M108343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-04-15T11:01:06Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use tRest (JSON URL) in a loop?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340303#M108344</link>
      <description>Thnx for your reply, your tutorial guided me to the right direction!!</description>
      <pubDate>Mon, 18 Apr 2016 09:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340303#M108344</guid>
      <dc:creator>Remco1</dc:creator>
      <dc:date>2016-04-18T09:52:08Z</dc:date>
    </item>
    <item>
      <title>Re: [resolved] How to use tRest (JSON URL) in a loop?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340304#M108345</link>
      <description>Page unable to open.</description>
      <pubDate>Sun, 29 Jul 2018 13:18:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/resolved-How-to-use-tRest-JSON-URL-in-a-loop/m-p/2340304#M108345</guid>
      <dc:creator>arpiitv</dc:creator>
      <dc:date>2018-07-29T13:18:22Z</dc:date>
    </item>
  </channel>
</rss>

