<?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 Retrieve data from a previous output on iteration in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356962#M122369</link>
    <description>&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my job bellow, I use row15.customer_number to change part of tRest API url on every iteration. Row15 provide me an internal id as well that I want to use for injecting customer datas with internal id linked to it.  I tried to use buffer and tJoin to get the datas but It's not working. I get datas from customer but all internal datas from row15 are NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nQSpAAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128029iAA92E2C187E8BBD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nQSpAAAW.png" alt="0695b00000nQSpAAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea on how to proceed on such case ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 21:28:32 GMT</pubDate>
    <dc:creator>JFournier1632810800</dc:creator>
    <dc:date>2024-11-15T21:28:32Z</dc:date>
    <item>
      <title>Retrieve data from a previous output on iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356962#M122369</link>
      <description>&lt;P&gt;Hello &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my job bellow, I use row15.customer_number to change part of tRest API url on every iteration. Row15 provide me an internal id as well that I want to use for injecting customer datas with internal id linked to it.  I tried to use buffer and tJoin to get the datas but It's not working. I get datas from customer but all internal datas from row15 are NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000nQSpAAAW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/128029iAA92E2C187E8BBD8/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000nQSpAAAW.png" alt="0695b00000nQSpAAAW.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Do you have an idea on how to proceed on such case ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 21:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356962#M122369</guid>
      <dc:creator>JFournier1632810800</dc:creator>
      <dc:date>2024-11-15T21:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve data from a previous output on iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356963#M122370</link>
      <description>&lt;P&gt;Hi @Jean-Baptiste Fournier​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the information you provided, I understood that you are using the "customer_number" to initiate an API call through the tREST component and after receiving the API response, you need an additional column from the same "row15" record from which the "customer_number" column originated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If this is indeed the scenario, and you're utilizing the "use the default (key/value) in global variables" setting in the tFlowToIterate_3 component, the internal ID column for the current record will also be automatically stored in a global variable. This enables you to retrieve its value using a tJavaRow component, instead of using tJoin and tBufferInput components.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Suppose you have "customer_id" and "internal_id" columns from row15, both being of type String. &lt;/P&gt;&lt;P&gt;In the tREST component, you're likely employing something similar to ((String)globalMap.get("row15.customer_id")) to invoke the API and let's assume you receive a "result" column from the API response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By replacing tJoin_1 component with a tJavaRow, you could use something like the following to get the internal_id back into the flow:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;output_row.result = input_row.result;&lt;/P&gt;&lt;P&gt;output_row.internal_id = ((String)globalMap.get("row15.internal_id"));&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 15:42:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356963#M122370</guid>
      <dc:creator>anselmopeixoto</dc:creator>
      <dc:date>2023-08-17T15:42:13Z</dc:date>
    </item>
    <item>
      <title>Re: Retrieve data from a previous output on iteration</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356964#M122371</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the answer that's excatly what I was looking for. I should have think about tJavarow but I'm not very familiar with this componement for now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway It's work now and It's more effecient.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 17 Aug 2023 16:46:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Retrieve-data-from-a-previous-output-on-iteration/m-p/2356964#M122371</guid>
      <dc:creator>JFournier1632810800</dc:creator>
      <dc:date>2023-08-17T16:46:02Z</dc:date>
    </item>
  </channel>
</rss>

