<?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: Merging Data from conditional REST call into flow in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231976#M22094</link>
    <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQrAAO"&gt;@AndrewMay&lt;/A&gt;&amp;nbsp;do you mean subjob or child job?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subjob is within a job (a few components joined together).&lt;/P&gt;
&lt;P&gt;Child job is a separated job you can run within another job by tRun component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes we create complex separated job and we run it within another job (parent job)&lt;/P&gt;
&lt;P&gt;If you want to use child job you will need to use tBufferInput and tBufferOutput components to get data from child job instead of tHash...&amp;nbsp;components which you can use within a job to get data from sub job..&lt;/P&gt;</description>
    <pubDate>Thu, 04 Apr 2019 23:30:39 GMT</pubDate>
    <dc:creator>DataTeam1</dc:creator>
    <dc:date>2019-04-04T23:30:39Z</dc:date>
    <item>
      <title>Merging Data from conditional REST call into flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231973#M22091</link>
      <description>&lt;P&gt;Hi, I'm new at Talend (and ETL), so apologies if I'm trying to do something that doesn't make sense.&lt;/P&gt; 
&lt;P&gt;I'm trying to conditionally add data from a REST call for some of the records I'm processing.&lt;/P&gt; 
&lt;P&gt;This is what I'm trying to achieve, with the red line being the lookup I'd like to add, but doesn't seem to be possible:&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TalendFlow.png" style="width: 877px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M3Jj.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/142239iDF494C5FB4B81A46/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M3Jj.png" alt="0683p000009M3Jj.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;I'm conditionally making a REST call for some of the records from the first iterate, and then I want to create a combine flow of the original data plus the results from the rest call (with those columns being null for the records which didn't make the REST call) - effectively making the output from the REST call a lookup on the main flow, without having to store the results to a table or file.&lt;/P&gt; 
&lt;P&gt;Given that the output from the tExtractXML is a flow per iteration (where I really need to add some logic to retrieve the first match from the XML), I think it makes sense that I wouldn't just be able to combine that with a flow for the entire result set, but I'm stuck trying to figure out how to do this via the Talend components rather than just making the REST call part of a Java function and hiding the details away in something like tJavaRow.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks,&lt;/P&gt; 
&lt;P&gt;Andrew&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 22:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231973#M22091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-03T22:37:31Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data from conditional REST call into flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231974#M22092</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQrAAO"&gt;@AndrewMay&lt;/A&gt;&amp;nbsp;you can store the data from tJavaRow_1 in tHashOutput component and then you can use tHashInput component with your tMap_3&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Here is info showing where to find tHash... component&amp;nbsp;&lt;A href="https://community.qlik.com/s/article/ka03p0000006EKdAAM" target="_self"&gt;https://community.talend.com/t5/Migration-Configuration-and/Where-are-the-tHashInput-and-tHashOutput-components/ta-p/309&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and here you can see how to use it:&amp;nbsp;&lt;A href="https://www.youtube.com/watch?v=V5zqUtzQbBk" target="_self" rel="nofollow noopener noreferrer"&gt;https://www.youtube.com/watch?v=V5zqUtzQbBk&lt;/A&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;STRONG&gt;Don't forget to give kudos&lt;/STRONG&gt; when a reply is helpful and &lt;SPAN&gt;when your query is answered, please &lt;STRONG&gt;mark the topic as resolved&lt;/STRONG&gt;&lt;/SPAN&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Apr 2019 23:48:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231974#M22092</guid>
      <dc:creator>DataTeam1</dc:creator>
      <dc:date>2019-04-03T23:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data from conditional REST call into flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231975#M22093</link>
      <description>&lt;P&gt;Thanks, I think that puts me on the right track (and I wouldn't have found where those components were without the link).&lt;/P&gt;&lt;P&gt;I hit a few snags when attempting to implement this, but I think that's all due to the order things are initialized within a subjob (i.e. the lookups are done early) - I think I can work around that by doing my REST calls in a subjob before I use the results as a lookup.&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 14:03:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231975#M22093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-04-04T14:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merging Data from conditional REST call into flow</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231976#M22094</link>
      <description>&lt;P&gt;&lt;A href="https://community.qlik.com/s/profile/0053p000007LPQrAAO"&gt;@AndrewMay&lt;/A&gt;&amp;nbsp;do you mean subjob or child job?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Subjob is within a job (a few components joined together).&lt;/P&gt;
&lt;P&gt;Child job is a separated job you can run within another job by tRun component.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sometimes we create complex separated job and we run it within another job (parent job)&lt;/P&gt;
&lt;P&gt;If you want to use child job you will need to use tBufferInput and tBufferOutput components to get data from child job instead of tHash...&amp;nbsp;components which you can use within a job to get data from sub job..&lt;/P&gt;</description>
      <pubDate>Thu, 04 Apr 2019 23:30:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merging-Data-from-conditional-REST-call-into-flow/m-p/2231976#M22094</guid>
      <dc:creator>DataTeam1</dc:creator>
      <dc:date>2019-04-04T23:30:39Z</dc:date>
    </item>
  </channel>
</rss>

