<?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: TRestClient and batch execution in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197948#M1479</link>
    <description>I paste the image here, but nothing happens in the post, I can see it when I'm writing, but not when It's posted.&lt;BR /&gt;My question is how to develop this job to break the REST calls in "parts", like batch execution.&lt;BR /&gt;&lt;BR /&gt;Basically my process is:&lt;BR /&gt;TRowGenerator == TMap == TWriteJSONFields == tRestClient</description>
    <pubDate>Wed, 25 Jan 2017 14:50:36 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-01-25T14:50:36Z</dc:date>
    <item>
      <title>TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197946#M1477</link>
      <description>Hello guys! That's my first interaction here and if I did something wrong, just let me know, ok? 
&lt;BR /&gt;I started to work with Talend one month ago I have some good jobs that I developed and are working well, but now I have a situation that I still don't figure out how to solve. 
&lt;BR /&gt;My need is to call a RESTful service and send a defined amount of records to the API, that'll treat the data in the database. The point is that some execution I have a high number of records and the API isn't able to handle this amount, so I need to break the API call in parts, like a batch execution. E.G. Call the API each 500 rows, get the response and call it again until I finish all the data that must be integrated. 
&lt;BR /&gt;I attached an image of my current test job which I'm generating a X number of rows, converting each row to JSON and join all together in one string and send it to tRestClient. The first part of the job is just to request authorization to login into the API. (tRestClient_1 = tExtractJSONFields_1 = tJavaRow) 
&lt;BR /&gt;Any further information, just let me know 
&lt;BR /&gt;Thanks in advance</description>
      <pubDate>Wed, 25 Jan 2017 14:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197946#M1477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T14:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197947#M1478</link>
      <description>Can't see your job.&amp;nbsp;&lt;BR /&gt;What's your question?&amp;nbsp;&lt;BR /&gt;What do you expect?&lt;BR /&gt;Regards,&lt;BR /&gt;TRF</description>
      <pubDate>Wed, 25 Jan 2017 14:39:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197947#M1478</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-01-25T14:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197948#M1479</link>
      <description>I paste the image here, but nothing happens in the post, I can see it when I'm writing, but not when It's posted.&lt;BR /&gt;My question is how to develop this job to break the REST calls in "parts", like batch execution.&lt;BR /&gt;&lt;BR /&gt;Basically my process is:&lt;BR /&gt;TRowGenerator == TMap == TWriteJSONFields == tRestClient</description>
      <pubDate>Wed, 25 Jan 2017 14:50:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197948#M1479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T14:50:36Z</dc:date>
    </item>
    <item>
      <title>Re: TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197949#M1480</link>
      <description>Simple way,&amp;nbsp;
&lt;BR /&gt;tRowGenerator &amp;gt; tMap &amp;gt; tFileOutputDelimited complete "File Name" field (for ex. C:/blabla/yourfile_.csv will generate yourfile_0.csv, yourfile_1.csv and so on) + tab Advanced settings, check "Split output in several" files then 500 in "Rows in each output file" field + check "Custom the flush buffer size" then 1 in "Row number" field
&lt;BR /&gt;On subjob Ok (from tRowGenerator) &amp;gt; tFileList (C:/blabla/yourfile_*.csv) &amp;gt; tFileInputDelimited &amp;gt; tWriteJSONFields &amp;gt; tRestClient
&lt;BR /&gt;Hope this helps,
&lt;BR /&gt;TRF</description>
      <pubDate>Wed, 25 Jan 2017 15:07:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197949#M1480</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-01-25T15:07:35Z</dc:date>
    </item>
    <item>
      <title>Re: TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197950#M1481</link>
      <description>I think I understand what you need to do. When you call the service and it has to return more records than one response can handle, does it return a new URL for you to call to get the next 500? So does it work in this sort of scenario.....
&lt;BR /&gt;1) Send initial request
&lt;BR /&gt;2) Receive response of first 500 records + a URL for next 500 records
&lt;BR /&gt;3) Call new URL
&lt;BR /&gt;4) goto 2
&lt;BR /&gt;If so, I used this method in a tutorial I posted a while ago. The Facebook functionality may have changed, but the idea will work. The tutorial is here:&amp;nbsp;
&lt;A href="https://www.rilhia.com/tutorials/using-talend-get-your-spotify-listening-history-facebook" rel="nofollow noopener noreferrer"&gt;https://www.rilhia.com/tutorials/using-talend-get-your-spotify-listening-history-facebook&lt;/A&gt;</description>
      <pubDate>Wed, 25 Jan 2017 15:38:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197950#M1481</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T15:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197951#M1482</link>
      <description>Seems much more sophisticated than the approach I proposed.
&lt;BR /&gt;Should be better.
&lt;BR /&gt;TRF</description>
      <pubDate>Wed, 25 Jan 2017 16:00:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197951#M1482</guid>
      <dc:creator>TRF</dc:creator>
      <dc:date>2017-01-25T16:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: TRestClient and batch execution</title>
      <link>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197952#M1483</link>
      <description>&lt;BLOCKQUOTE&gt;
 &lt;TABLE border="1"&gt;
  &lt;TBODY&gt;
   &lt;TR&gt;
    &lt;TD&gt;Simple way,&amp;nbsp;&lt;BR /&gt;tRowGenerator &amp;gt; tMap &amp;gt; tFileOutputDelimited complete "File Name" field (for ex. C:/blabla/yourfile_.csv will generate yourfile_0.csv, yourfile_1.csv and so on) + tab Advanced settings, check "Split output in several" files then 500 in "Rows in each output file" field + check "Custom the flush buffer size" then 1 in "Row number" field&lt;BR /&gt;On subjob Ok (from tRowGenerator) &amp;gt; tFileList (C:/blabla/yourfile_*.csv) &amp;gt; tFileInputDelimited &amp;gt; tWriteJSONFields &amp;gt; tRestClient&lt;BR /&gt;Hope this helps,&lt;BR /&gt;TRF&lt;/TD&gt;
   &lt;/TR&gt;
  &lt;/TBODY&gt;
 &lt;/TABLE&gt;
&lt;/BLOCKQUOTE&gt;
&lt;BR /&gt;Thanks, I think that this approach will make me get in.</description>
      <pubDate>Wed, 25 Jan 2017 16:16:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/TRestClient-and-batch-execution/m-p/2197952#M1483</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-01-25T16:16:28Z</dc:date>
    </item>
  </channel>
</rss>

