<?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: How to include input in response from tRestClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288058#M61578</link>
    <description>&lt;P&gt;You need to iterate the input so that you are able to access the value of id-column later, eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimited--main--tFlowToIterate--iterate--tRestClient--tMap--&amp;gt;bababa&lt;/P&gt;&lt;P&gt;on tMap, add a new column called Id, set its value as below to get the current Id value.&lt;/P&gt;&lt;P&gt;(String)globalMap.get("row1.Id")&lt;/P&gt;&lt;P&gt;//for string type. &lt;/P&gt;&lt;P&gt;(Integer)globalMap.get("row1.Id")&lt;/P&gt;&lt;P&gt;//for int type. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
    <pubDate>Tue, 25 Aug 2020 08:28:23 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-08-25T08:28:23Z</dc:date>
    <item>
      <title>How to include input in response from tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288057#M61577</link>
      <description>&lt;P&gt;I have a delimited file of following format&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Id, Location&lt;/P&gt;&lt;P&gt;x,y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is used as input for a tRestClient-call where location is used as parameter&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve that in the response, I also can get the value of the id-column? Now I can only parse the xml-file but I cannot relate it to the correct id, which I need to be able to update the record.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:35:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288057#M61577</guid>
      <dc:creator>somersst</dc:creator>
      <dc:date>2024-11-16T01:35:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to include input in response from tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288058#M61578</link>
      <description>&lt;P&gt;You need to iterate the input so that you are able to access the value of id-column later, eg:&lt;/P&gt;&lt;P&gt;tFileInputDelimited--main--tFlowToIterate--iterate--tRestClient--tMap--&amp;gt;bababa&lt;/P&gt;&lt;P&gt;on tMap, add a new column called Id, set its value as below to get the current Id value.&lt;/P&gt;&lt;P&gt;(String)globalMap.get("row1.Id")&lt;/P&gt;&lt;P&gt;//for string type. &lt;/P&gt;&lt;P&gt;(Integer)globalMap.get("row1.Id")&lt;/P&gt;&lt;P&gt;//for int type. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shong&lt;/P&gt;</description>
      <pubDate>Tue, 25 Aug 2020 08:28:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288058#M61578</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-25T08:28:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to include input in response from tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288059#M61579</link>
      <description>&lt;P&gt;But tFlowIterate cant interate to tRestClient&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:10:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288059#M61579</guid>
      <dc:creator>Cherichoc-</dc:creator>
      <dc:date>2022-08-02T09:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to include input in response from tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288060#M61580</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sorry to dig this topic up but I need to do the same as somersst who opened that topic.&lt;/P&gt;&lt;P&gt;I got a list of ids in my input file and I want to get a value from an API call response. My goal is to have the matching between my source id and the value the API provides me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To do so, I did :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tFileInputDelimited - Main - tFlowToIterate - Iterate - tJavaFlex - Main - tRESTClient - tExtractJSON - tMap - tLogRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my tMap, I created a field and set its value like this : (String)globalMap.get("row12.fieldName")&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As far as I can see in my tLogRow component, the field I created is empty but the data coming from my REST API call is correctly set.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Sun, 05 Nov 2023 17:35:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288060#M61580</guid>
      <dc:creator>ShZ</dc:creator>
      <dc:date>2023-11-05T17:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to include input in response from tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288061#M61581</link>
      <description>&lt;P&gt;@Sébastien HEITZ​&amp;nbsp;, double check your expression &lt;/P&gt;&lt;P&gt;(String)globalMap.get("row12.fieldName")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here row12 is the row number before tFlowToIterate in your case, fieldName is the column name defined on tFileInputDelimited's schema.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 02:13:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288061#M61581</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-11-06T02:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to include input in response from tRestClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288062#M61582</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you, my field name was correct I just replaced it when I posted but I was using the wrong row (the one after the tFlowToIterate component).&lt;/P&gt;</description>
      <pubDate>Mon, 06 Nov 2023 07:24:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/How-to-include-input-in-response-from-tRestClient/m-p/2288062#M61582</guid>
      <dc:creator>ShZ</dc:creator>
      <dc:date>2023-11-06T07:24:15Z</dc:date>
    </item>
  </channel>
</rss>

