<?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 How to loop a trest job? in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-a-trest-job/m-p/2357525#M122798</link>
    <description>&lt;P&gt;We have a limitation to extract 3000 records per call from this site and we need to implement a loop job for it.&lt;/P&gt;&lt;P&gt;We've tried to create a job but without any success.&amp;nbsp;Can someone point me where we should add this to loop 3000 records till all of the records from the site are extracted.&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp;We are passing start and count variables in the HTTP Body.&lt;/P&gt;&lt;P&gt;"json={\"start\": "+context.start+", \"count\" :"+context.count+"}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start and count are the parameters required by the site.&lt;/P&gt;&lt;P&gt;start = which record to start from&lt;/P&gt;&lt;P&gt;count = total #  of records to extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Entire Job design:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpaKAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134633i0DEA999EF6D29878/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpaKAAS.png" alt="0695b00000nRpaKAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpfZAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140249i55E30C82E3495182/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpfZAAS.png" alt="0695b00000nRpfZAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpbIAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130990i7CA1FE7E5EB00FCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpbIAAS.png" alt="0695b00000nRpbIAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpghAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150788iCA0BB43D0BF718DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpghAAC.png" alt="0695b00000nRpghAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpc6AAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154974i0D568E53E4332921/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpc6AAC.png" alt="0695b00000nRpc6AAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRphBAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138862i8B010104E9A3166A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRphBAAS.png" alt="0695b00000nRphBAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpPmAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140833i466D2EC0A968FBB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpPmAAK.png" alt="0695b00000nRpPmAAK.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpdEAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136384i6444234DD30A5430/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpdEAAS.png" alt="0695b00000nRpdEAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpdnAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137975iD1073561853D38D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpdnAAC.png" alt="0695b00000nRpdnAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpfFAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153069i07696F8BACD52C1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpfFAAS.png" alt="0695b00000nRpfFAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:27:08 GMT</pubDate>
    <dc:creator>rp2018</dc:creator>
    <dc:date>2024-11-15T21:27:08Z</dc:date>
    <item>
      <title>How to loop a trest job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-a-trest-job/m-p/2357525#M122798</link>
      <description>&lt;P&gt;We have a limitation to extract 3000 records per call from this site and we need to implement a loop job for it.&lt;/P&gt;&lt;P&gt;We've tried to create a job but without any success.&amp;nbsp;Can someone point me where we should add this to loop 3000 records till all of the records from the site are extracted.&lt;/P&gt;&lt;P&gt;NOTE:&amp;nbsp;We are passing start and count variables in the HTTP Body.&lt;/P&gt;&lt;P&gt;"json={\"start\": "+context.start+", \"count\" :"+context.count+"}"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start and count are the parameters required by the site.&lt;/P&gt;&lt;P&gt;start = which record to start from&lt;/P&gt;&lt;P&gt;count = total #  of records to extract&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the Entire Job design:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpaKAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/134633i0DEA999EF6D29878/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpaKAAS.png" alt="0695b00000nRpaKAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpfZAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140249i55E30C82E3495182/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpfZAAS.png" alt="0695b00000nRpfZAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpbIAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/130990i7CA1FE7E5EB00FCD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpbIAAS.png" alt="0695b00000nRpbIAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpghAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150788iCA0BB43D0BF718DD/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpghAAC.png" alt="0695b00000nRpghAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpc6AAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154974i0D568E53E4332921/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpc6AAC.png" alt="0695b00000nRpc6AAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRphBAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/138862i8B010104E9A3166A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRphBAAS.png" alt="0695b00000nRphBAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpPmAAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/140833i466D2EC0A968FBB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpPmAAK.png" alt="0695b00000nRpPmAAK.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpdEAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/136384i6444234DD30A5430/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpdEAAS.png" alt="0695b00000nRpdEAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpdnAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/137975iD1073561853D38D5/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpdnAAC.png" alt="0695b00000nRpdnAAC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nRpfFAAS.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/153069i07696F8BACD52C1D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nRpfFAAS.png" alt="0695b00000nRpfFAAS.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:27:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-a-trest-job/m-p/2357525#M122798</guid>
      <dc:creator>rp2018</dc:creator>
      <dc:date>2024-11-15T21:27:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to loop a trest job?</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-loop-a-trest-job/m-p/2357526#M122799</link>
      <description>&lt;P&gt;@Ranjan Patel​&amp;nbsp;, if I understand your requirement well, you should increase the value of context.start for next API calling, and exit the loop if there are no records are extracted. To to, add a tJava component after tJavaFlex_2, &lt;/P&gt;&lt;P&gt;...tJavaFlex_2--OnComponentOK--tJava&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and add these code:&lt;/P&gt;&lt;P&gt;context.start=context.start+3000;&lt;/P&gt;&lt;P&gt;if((Integer)globalMap.get("tExtractJSONFields_3_NB_LINE")==null){&lt;/P&gt;&lt;P&gt;globalMap.put("V_LOOP", false);&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;//move these code from tJavaFlex_1 to tJava component)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please try and let me know if it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&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;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 03:06:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-loop-a-trest-job/m-p/2357526#M122799</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-08-28T03:06:46Z</dc:date>
    </item>
  </channel>
</rss>

