<?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 - GET - using parameters in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227372#M19002</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. I tried the same but couldn't achieve what I need. Attached the snapshot of what I have done in the name 1,2 and 3.png.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see the job is running but I can't see the output from the GET API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sathya&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuX8"&gt;1.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuiG"&gt;2.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuoR"&gt;3.PNG&lt;/A&gt;</description>
    <pubDate>Fri, 08 Mar 2019 02:34:31 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-03-08T02:34:31Z</dc:date>
    <item>
      <title>tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227365#M18995</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;
&lt;P&gt;I am stuck with a scenario where I use Talend rest API [ POST ] to run a different job and in response it gets 2 attributes in json&amp;nbsp; run_id and number_in_job.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, I need to take the run_id number and invoke a API GET call to see the job result [ Success or Failure ] .&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know the URL for POST and GET.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How can I integrate API request [POST} and API [GET] to see the final output.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sathya&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 04:42:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227365#M18995</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T04:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227366#M18996</link>
      <description>&lt;P&gt;Hi Sathya&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;call the first&amp;nbsp;API, use tExtractJSONFields &amp;nbsp;to extract values from response&amp;nbsp;JSON, store it to variable&lt;/P&gt;&lt;P&gt;use this variable in 2nd subjob to 2nd API call&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 08:31:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227366#M18996</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-07T08:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227367#M18997</link>
      <description>&lt;P&gt;Hi Vapukov,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. Can you please explain me a bit as I am very new to ETL&amp;nbsp; world.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying as in the attached pic.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I a using tRest with POST to trigger a job and in response I am getting&amp;nbsp;{"run_id":96,"number_in_job":20}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I need to use the "run_id":96 in another GET API to see the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;GET API :- &lt;A href="https://abc.net/api/2.0/job/runs/get?run_id=96" target="_blank" rel="nofollow noopener noreferrer"&gt;https://abc.net/api/2.0/job/runs/get?run_id=96&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks for helping&lt;/P&gt;
&lt;P&gt;Sathya&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LunY"&gt;pics1.PNG&lt;/A&gt;</description>
      <pubDate>Thu, 07 Mar 2019 10:39:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227367#M18997</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T10:39:40Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227368#M18998</link>
      <description>&lt;P&gt;Given the JSON you are receiving back, you need to configure your tExtractJsonFields component as in this image....&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot 2019-03-07 at 10.50.55.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2gW.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154698iC42A999F993BA17E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2gW.png" alt="0683p000009M2gW.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Your "JSON Field" value will be the output String column of your tRest component. If you configure the tExtractJsonFields component as above, it will output the values held in the JSON. Then you need to create your URL for your next API call using String concatenation.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 10:53:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227368#M18998</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T10:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227369#M18999</link>
      <description>&lt;BLOCKQUOTE&gt; 
 &lt;HR /&gt; 
 &lt;A href="https://community.qlik.com/s/profile/0053p000007LPIpAAO"&gt;@thinksathya&lt;/A&gt;&amp;nbsp;wrote: 
 &lt;BR /&gt; 
 &lt;P&gt;Hi Vapukov,&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;Thanks for your response. Can you please explain me a bit as I am very new to ETL&amp;nbsp; world.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I am trying as in the attached pic.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I a using tRest with POST to trigger a job and in response I am getting&amp;nbsp;{"run_id":96,"number_in_job":20}&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;I need to use the "run_id":96 in another GET API to see the result.&lt;/P&gt; 
 &lt;P&gt;&amp;nbsp;&lt;/P&gt; 
 &lt;P&gt;GET API :- &lt;A href="https://abc.net/api/2.0/job/runs/get?run_id=96" target="_blank" rel="noopener nofollow noopener noreferrer"&gt;https://abc.net/api/2.0/job/runs/get?run_id=96&lt;/A&gt;&lt;/P&gt; 
 &lt;P&gt;Thanks for helping&lt;/P&gt; 
 &lt;P&gt;Sathya&lt;/P&gt; 
 &lt;HR /&gt; 
&lt;/BLOCKQUOTE&gt; 
&lt;P&gt;as showing by&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000069RuGAAU"&gt;@rhall&lt;/A&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;first, you need to extract JSON&lt;BR /&gt;&lt;BR /&gt;then you could use this column value in next component&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 11:23:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227369#M18999</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-07T11:23:20Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227370#M19000</link>
      <description>&lt;P&gt;Sorry&amp;nbsp;&lt;A href="https://community.qlik.com/s/profile/005390000067LRbAAM"&gt;@vapukov&lt;/A&gt;,&amp;nbsp;I wasn't meaning to steal your thunder. I thought you might be asleep now &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:05:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227370#M19000</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-07T13:05:25Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227371#M19001</link>
      <description>&lt;P&gt;this is global resource - "&lt;SPAN&gt;The &lt;/SPAN&gt;&lt;SPAN&gt;early &lt;/SPAN&gt;&lt;SPAN&gt;bird &lt;/SPAN&gt;&lt;SPAN&gt;catches &lt;/SPAN&gt;&lt;SPAN&gt;the &lt;/SPAN&gt;&lt;SPAN&gt;worm" &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 13:09:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227371#M19001</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-07T13:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227372#M19002</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your response. I tried the same but couldn't achieve what I need. Attached the snapshot of what I have done in the name 1,2 and 3.png.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can see the job is running but I can't see the output from the GET API.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;P&gt;Sathya&lt;/P&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuX8"&gt;1.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuiG"&gt;2.PNG&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://community.qlik.com/legacyfs/online/tlnd_dw_files/0683p000009LuoR"&gt;3.PNG&lt;/A&gt;</description>
      <pubDate>Fri, 08 Mar 2019 02:34:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227372#M19002</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-03-08T02:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: tRestClient - GET - using parameters</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227373#M19003</link>
      <description>&lt;P&gt;you need to use different connections between components&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screen Shot 2019-03-08 at 5.14.56 PM.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M2iD.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/156590i985322D2DA3989E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M2iD.png" alt="0683p000009M2iD.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;Iterate in your case does not transfer the value but do the loop only&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;and in 2nd tRESTClient, you need variable stored by iFlowToIterate, by default, it will be&amp;nbsp;&lt;/P&gt; 
&lt;PRE&gt;(String)globalMap.get("row2.run_id")&lt;/PRE&gt; 
&lt;P&gt;row2 - it is name&amp;nbsp;of input connection line for tFlowToIterate,&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;tJavaFlex - do nothing, empty&lt;/P&gt;</description>
      <pubDate>Fri, 08 Mar 2019 04:19:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRestClient-GET-using-parameters/m-p/2227373#M19003</guid>
      <dc:creator>vapukov</dc:creator>
      <dc:date>2019-03-08T04:19:37Z</dc:date>
    </item>
  </channel>
</rss>

