<?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 tRest input only getting last value in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203522#M4789</link>
    <description>&lt;P&gt;I have cascading Rest API's that I need to call... the first API call returns 10 rows with id's that I need to pass to the second API call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A tLogRow shows all 10 id's being output correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then used the technique of setting a globalMap value with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;globalMap.put(&lt;SPAN class="s1"&gt;"id"&lt;/SPAN&gt;, input_row.id);&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;and then using that globalMap in the next tRest API.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;The problem is that it only lets me connect with a "On Component OK" trigger, and it is only doing the LAST id query in the tRest object.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;How can I get it to iterate on those ID's and not just run the last one?&lt;/P&gt;</description>
    <pubDate>Wed, 27 Mar 2019 08:12:34 GMT</pubDate>
    <dc:creator>fjblau</dc:creator>
    <dc:date>2019-03-27T08:12:34Z</dc:date>
    <item>
      <title>tRest input only getting last value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203522#M4789</link>
      <description>&lt;P&gt;I have cascading Rest API's that I need to call... the first API call returns 10 rows with id's that I need to pass to the second API call.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A tLogRow shows all 10 id's being output correctly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I then used the technique of setting a globalMap value with&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;globalMap.put(&lt;SPAN class="s1"&gt;"id"&lt;/SPAN&gt;, input_row.id);&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;and then using that globalMap in the next tRest API.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;The problem is that it only lets me connect with a "On Component OK" trigger, and it is only doing the LAST id query in the tRest object.&lt;/P&gt;
&lt;P class="p1"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p1"&gt;How can I get it to iterate on those ID's and not just run the last one?&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 08:12:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203522#M4789</guid>
      <dc:creator>fjblau</dc:creator>
      <dc:date>2019-03-27T08:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: tRest input only getting last value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203523#M4790</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you need to use tFlowToIterate, it will store each id into the variable and do following steps one by one iteration&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ" target="_self" rel="nofollow noopener noreferrer"&gt;https://help.talend.com/reader/wDRBNUuxk629sNcI0dNYaA/WqJCkTE5~5DDaSFvtNXZnQ&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Mar 2019 22:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203523#M4790</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-27T22:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: tRest input only getting last value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203524#M4791</link>
      <description>&lt;P&gt;That is awesome, thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I got something to work like that using a tJavaFlex too... but is there a performance difference between them?&amp;nbsp; I can definitely see the tFlowIterator being easier to read!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 07:20:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203524#M4791</guid>
      <dc:creator>fjblau</dc:creator>
      <dc:date>2019-03-28T07:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: tRest input only getting last value</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203525#M4792</link>
      <description>&lt;P&gt;no difference in speed as I know (or it extremely low)&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2019 11:11:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-input-only-getting-last-value/m-p/2203525#M4792</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-28T11:11:50Z</dc:date>
    </item>
  </channel>
</rss>

