<?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: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233064#M22819</link>
    <description>&lt;P&gt;You need to have this sort of layout...&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="layout.png" style="width: 909px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155401i2BDD860598C689D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQj.png" alt="0683p000009LzQj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;You set the initial globalMap in the "Set initial globalMap" tJava. Then set the "Where" clause logic in the tLoop component. The "Dummy" component is just to allow you to link to the tRestClient. I've included the "Modify JSON" tJavaFlex following on from your last question. Then you can set the next url in the "Set globalMap" tJavaFlex.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Aug 2018 14:36:56 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2018-08-22T14:36:56Z</dc:date>
    <item>
      <title>Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233061#M22816</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;
&lt;P&gt;Need you expert help.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The requirement&amp;nbsp;is to pull all chat data from REST API (one time full data dump) and then pull chat on daily basis.The output&amp;nbsp;is spread across 180K pages with each page giving URL to next and previous (except first page which have only 'nex_url' and last page with have only '&lt;SPAN&gt;prev_url&lt;/SPAN&gt;').&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So Far I have been able to use the API/URL to extract information from first page first page&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;tRestClient -&amp;gt;tJavaRow-&amp;gt;tJsonExtract-&amp;gt;tOracleOut&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I modify the job to&lt;/P&gt;
&lt;P&gt;1) Pull all data for one time data dump, 180k pages&lt;/P&gt;
&lt;P&gt;2) Pull data on daily basis for current day or extract data&amp;nbsp;until the timestamp is current day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example output from API&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Page 1 gives&lt;BR /&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "chats": [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; all chat related attributes that needs to imported&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "count": 179451,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "next_url": "next_url_here"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Page2 gives&lt;/P&gt;
&lt;P&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "chats": [&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;SPAN&gt;all chat related attributes that needs to imported&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "count": 179451&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "prev_url": "previous_url_here"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "next_url": "next_url_here"&lt;/P&gt;
&lt;P&gt;}&lt;/P&gt;
&lt;P&gt;Page 3 gives ......next page&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:36:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233061#M22816</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-22T11:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233062#M22817</link>
      <description>&lt;P&gt;My assumption is that the "next_url" element will not be supplied if there are no other pages after that one. If that is the case, you can do it like this.....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) Set up a tLoop using the "while" loop functionality. Use a globalMap variable holding your initial URL (set in a tJava preceding the tLoop) as your test on your while clause. "While globalMap value is not null" for example.&lt;/P&gt;&lt;P&gt;2) Use the globalMap value in your tRestClient&lt;/P&gt;&lt;P&gt;3) Retrieve your data for each service call and also retrieve the next_url. Set the globalMap value to be that of the next_url. If it is not present, then this will be null.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The tLoop will fire for each url supplied and will stop when the next_url value is not supplied.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:56:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233062#M22817</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T11:56:28Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233063#M22818</link>
      <description>&lt;P&gt;I&amp;nbsp;am trying to do what you suggested, I am quite new to Talend hence sometimes it's bit difficult to achieve small and simple things as well.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I used tsetglobal to set the initial URL and then passed it to&amp;nbsp;tRestClient. Then extracting the 'next_url' from tExtractJson and till here things are good. I looked up result in tLogRow and can see the next_url. However I am not able to ficure out how to assign the next_url from tExtractJson to a global variable in tJava.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzcb.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136435iA8BD81B5A906227B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzcb.png" alt="0683p000009Lzcb.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 965px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzcg.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150857i45B250F1154BC131/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzcg.png" alt="0683p000009Lzcg.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 522px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzNw.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130144i54D1001A126DF9D4/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzNw.png" alt="0683p000009LzNw.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 881px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzWZ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130952iE5F90D53B05F66A2/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzWZ.png" alt="0683p000009LzWZ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 788px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzIv.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135097i8348CAFE330B0F27/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzIv.png" alt="0683p000009LzIv.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:06:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233063#M22818</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-22T14:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233064#M22819</link>
      <description>&lt;P&gt;You need to have this sort of layout...&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="layout.png" style="width: 909px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzQj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/155401i2BDD860598C689D0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzQj.png" alt="0683p000009LzQj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;You set the initial globalMap in the "Set initial globalMap" tJava. Then set the "Where" clause logic in the tLoop component. The "Dummy" component is just to allow you to link to the tRestClient. I've included the "Modify JSON" tJavaFlex following on from your last question. Then you can set the next url in the "Set globalMap" tJavaFlex.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:36:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233064#M22819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T14:36:56Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233065#M22820</link>
      <description>Hi rhall_2_0, thank you for replying. 
&lt;BR /&gt; 
&lt;BR /&gt;I am unable to get the attribute value from tExtractJson to tJava. In this case I am extracting "next_url" in tExtractJson but when I link it to tJava I have no clue how to assign globalMap variable. Below is the code in the tJava, this is giving error 'input_row cannot be resolved' 
&lt;BR /&gt; 
&lt;BR /&gt;globalMap.put("next_url",input_row.next_url); 
&lt;BR /&gt;System.out.println("Value Of GlobalVar: "+globalMap.get("next_url")); 
&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Aug 2018 15:55:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233065#M22820</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-22T15:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233066#M22821</link>
      <description>&lt;P&gt;LInk the tExtractJson component to a tJavaFlex not a tJava. The code for the tJavaFlex should&amp;nbsp;be in the Main Code section.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 16:23:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233066#M22821</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-22T16:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233067#M22822</link>
      <description>thank you for replying. The below mentioned code in tJavaFlex is giving error&lt;BR /&gt;&lt;BR /&gt;globalMap.put("v_next_url",input_row.next_url);&lt;BR /&gt;&lt;BR /&gt;'input_row cannot be resolved'&lt;BR /&gt;&lt;BR /&gt;tExtractJson to tJavaFlex (what code I have to write in tJAvaFlex to get next_url value from tExtractJson to a global variable in tJavaFlex. The one I somehow manage to find from internet doesn't work &lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt; )</description>
      <pubDate>Thu, 23 Aug 2018 07:40:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233067#M22822</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-23T07:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233068#M22823</link>
      <description>resolved it, had to use&lt;BR /&gt;globalMap.put("V_API_URL",row2.next_url);&lt;BR /&gt;instead of&lt;BR /&gt;globalMap.put("v_next_url",input_row.next_url);&lt;BR /&gt;&lt;BR /&gt;row2 is the output from tJsonExtract</description>
      <pubDate>Thu, 23 Aug 2018 13:23:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233068#M22823</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-23T13:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233069#M22824</link>
      <description>&lt;P&gt;Ah yes, sorry I have been away from my machine all day. The tJavaRow uses the input_row and output_row row names ( for some strange reason) the tJavaFlex uses the actual row names.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did this work for you?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Aug 2018 19:21:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233069#M22824</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-23T19:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233070#M22825</link>
      <description>&lt;P&gt;Yes this did work for me, the final&amp;nbsp;solution looks like this.&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 900px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzM5.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137448i1269075B365CF20B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzM5.png" alt="0683p000009LzM5.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#FF6600"&gt;Global Variable&amp;nbsp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;"V_API_URL" -&amp;nbsp;Holds initial URL and then is updated with next URL that I get from tExtractJson.&lt;/P&gt; 
&lt;P&gt;"V_LOOP" - Defined Boolean, hold&amp;nbsp;value true to start with and is set to false when the&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;V_API_URL is null&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;&lt;FONT size="4" color="#FF6600"&gt;TLoop&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;Used While loop, without Declaration and Iteration&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 357px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LxsN.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142393iDA9528292A4D626F/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LxsN.png" alt="0683p000009LxsN.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;tRestClient&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 494px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009LzeX.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146396i6EE8A72FB6342DD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009LzeX.png" alt="0683p000009LzeX.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="4" color="#FF6600"&gt;&lt;STRONG&gt;tJavaFlex&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;For each loop Global Variable V_API_URL is set to the next_url got from tJsonExtract&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;FONT size="2" color="#000000"&gt;Check for if the&amp;nbsp;&lt;SPAN&gt;V_API_URL&amp;nbsp;has any url or not, if it does the loop continues as the value for the V_LOOP is still true and if there is no url then V_LOOP is set to False. This would exit the loop when it's end page.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-left" image-alt="image.png" style="width: 638px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009Lzec.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146608iD5A3343C8342E946/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009Lzec.png" alt="0683p000009Lzec.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 08:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233070#M22825</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-24T08:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233071#M22826</link>
      <description>&lt;P&gt;Glad you got it to work and a good explanation of the steps you took. However, it is good form to award the "Accepted Solution" to those who have provided you with the answer. In this case, to use the tLoop and a globalMap to hold the value of the next url. You can award several "Accepted Solutions" if you feel multiple people have contributed towards it (you may feel that you deserve some credit for writing this up, and I would agree), but it is a little frustrating when you spend time building an example solution only to have it used but not accepted.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 14:29:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233071#M22826</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-24T14:29:58Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233072#M22827</link>
      <description>My apologies rhall_2_0, accepting solution to my post was not intended towards taking any credit. The context was more towards summarizing everything and accepting it as a solution so that it would help others to quickly find the solution rather than reading whole conversation. I wouldn’t have had solution to my problem if you didn’t help. This is the second problem you helped me with consecutively and I am truly greatful to get help and support from an expert like yourself.</description>
      <pubDate>Fri, 24 Aug 2018 16:07:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233072#M22827</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-24T16:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233073#M22828</link>
      <description>Also I wasn’t aware that multiple answers can selected as accepted solution &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:14:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233073#M22828</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-08-24T16:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233074#M22829</link>
      <description>&lt;P&gt;No problem at all and thanks for sorting it. There are plenty of people who just leave after having their questions answered and it can get a little irritating when all it takes is a click on "Solution Accepted". I happen to use this forum as a method&amp;nbsp;of promoting my business. So "Kudos" and "Accepted Solutions" are of value. Once again, thanks for sorting this and thanks for writing your solution up to demonstrate to others who might have the same question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Aug 2018 16:46:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233074#M22829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-08-24T16:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233075#M22830</link>
      <description>&lt;P&gt;Just wanted to thank both of you guys. I was also in a similar problem and after modifying your solution it works for me up to some extent. Will post if there is something i need help with&lt;/P&gt;</description>
      <pubDate>Fri, 19 Oct 2018 22:38:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233075#M22830</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-10-19T22:38:52Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233076#M22831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOQnAAO"&gt;@gr44&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I am trying to follow what exactly you had been doing but I seem to stuck at TRestClient where it keeps giving me nullpointerexception Java error.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Not sure if the problem is with this component though as I can see that in Tjava component I had println but nothing is getting printed there.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-02 at 9.28.10 am.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0cJ.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/143625i7D4079D5E2496DC0/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0cJ.png" alt="0683p000009M0cJ.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Is there anything I should be looking at?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In Tjava I got below code:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;globalMap.put(&lt;SPAN class="s1"&gt;"VApiUrl"&lt;/SPAN&gt;,row4.NextUrl);&lt;/P&gt; 
&lt;P class="p2"&gt;&amp;nbsp;System.out.println(&lt;SPAN class="s1"&gt;"Value of Globar Var: "&lt;/SPAN&gt;+globalMap.get(&lt;SPAN class="s1"&gt;"VApiUrl"&lt;/SPAN&gt;));&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;In TrestClient I have got config like this:&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;((String)globalMap.get("VApiUrl"))&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;Can you please share your job code if possible?&lt;/P&gt; 
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P class="p1"&gt;Thanks&lt;/P&gt; 
&lt;P class="p1"&gt;Harshal.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 22:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233076#M22831</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-01T22:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233077#M22832</link>
      <description>&lt;P&gt;Hi guys&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Would really appreciate if you can respond to this or share some more details on your solution please.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Harshal.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 07:12:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233077#M22832</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-02T07:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233078#M22833</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/00539000006yrG6AAI"&gt;@Parikhharshal&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As far as I can see with the screenshot you posted, you have not assigned any value to the global variable.&amp;nbsp;If you are using a global variable in the URL for the tRestClient_1 then make sure that the value is&amp;nbsp;assigned in tSetGlobalVar_1&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 10:41:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233078#M22833</guid>
      <dc:creator>Gourav_King_of_DataLand</dc:creator>
      <dc:date>2018-11-02T10:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233079#M22834</link>
      <description>&lt;P&gt;I suspect that &lt;A href="https://community.qlik.com/s/profile/0053p000007LOQnAAO"&gt;@gr44&lt;/A&gt;&amp;nbsp;is correct. The process should be.....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1) Set the first URL in the tSetGlobalVar_1&lt;/P&gt;
&lt;P&gt;2) The first iteration of the loop will use the URL set in step 1&lt;/P&gt;
&lt;P&gt;3) The JSON returned is then inspected for your data and another URL&lt;/P&gt;
&lt;P&gt;4) The tJavaFlex at the end will set a new value to the globalMap variable for the URL&lt;/P&gt;
&lt;P&gt;5) The loop goes to the next iteration, back to step 2&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 12:22:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233079#M22834</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-11-02T12:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Iterative Data extraction (Pagination and Polling) from REST API using tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233080#M22835</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;and&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LOQnAAO"&gt;@gr44&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The way you guys did it, I am following that but not sure what I have missed out.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what I have set in global var.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-02 at 11.30.05 pm.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0hd.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/132666i05FABC01F4BCCC48/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0hd.png" alt="0683p000009M0hd.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;This is what set in tloop.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-02 at 11.31.18 pm.png" style="width: 970px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0pM.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153085i6C250F4039E98C9A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0pM.png" alt="0683p000009M0pM.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what mentioned in tjava.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-02 at 11.32.06 pm.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0pR.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138663iF1552543E3A2989B/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0pR.png" alt="0683p000009M0pR.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;This is what is mentioned in trestclient&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2018-11-02 at 11.32.57 pm.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M0pW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/146971i6A20FA2BA26FFB9C/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M0pW.png" alt="0683p000009M0pW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Am I missing anything or doing anything wrong here?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Guys....As mentioned if you could share screenshot of these values that would be fantastic!&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;p.s.: You guys are awesome as always and thanks a lot for replying &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks&lt;/P&gt; 
&lt;P&gt;Harshal.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Nov 2018 12:34:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Iterative-Data-extraction-Pagination-and-Polling-from-REST-API/m-p/2233080#M22835</guid>
      <dc:creator>Parikhharshal</dc:creator>
      <dc:date>2018-11-02T12:34:49Z</dc:date>
    </item>
  </channel>
</rss>

