<?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: tWriteJSONField to tRESTClient in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2496767#M141623</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Based on the example you provided in Postman, it appears that you only need the username value ("desri_tst") and not the entire JSON string. If that's the case, why did you use a tWriteJsonField to write a JSON string? Can you please explain this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you only need the username in tRestClient component, you can use tFlowToIiterate to iterate and call the API for each username, eg:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...tlogRow3--main(row9)--tFlowToIterate--iterate--tRestClient.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;on tRestClient, set the URL as:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;context.RestAPI_URL +&amp;nbsp;"community/users/" + (String)globalMap.get("row9.username“）+&amp;nbsp;"/disable/"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shong&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 09 Dec 2024 08:05:36 GMT</pubDate>
    <dc:creator>Shicong_Hong</dc:creator>
    <dc:date>2024-12-09T08:05:36Z</dc:date>
    <item>
      <title>tWriteJSONField to tRESTClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2494741#M141573</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;I have an output from&amp;nbsp;tWriteJSONField component such as:&lt;BR /&gt;|{"username":"A.Apple","email":"Andres.Apple@test.edu"}&lt;BR /&gt;|{"username":"desri_tst","email":"desri@test.edu"}&lt;BR /&gt;&lt;BR /&gt;I have to use that in calling API with tRESTClient component where the url should be:&lt;BR /&gt;&lt;BR /&gt;context.RestAPI_URL +&amp;nbsp;"community/users/" + &amp;lt;&lt;FONT color="#008000"&gt;username from the JSON list above&lt;/FONT&gt;&amp;gt; +&amp;nbsp;"/disable/"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I also have "token" in the Query parameters.&lt;/P&gt;
&lt;P&gt;I am not familiar as to how to 'plug' the username from the JSON into the URL string&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanshup_0-1732648935397.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174875i57BD15B1A27BE485/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himanshup_0-1732648935397.png" alt="himanshup_0-1732648935397.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanshup_0-1732649627501.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/174878iEBCFCCAF652E31CB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himanshup_0-1732649627501.png" alt="himanshup_0-1732649627501.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PS: I have tested this in postman, and the API call works&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;https://&amp;lt;targetURL&amp;gt;/community/users/&lt;FONT color="#008000"&gt;desri_tst&lt;/FONT&gt;/disable?token=Lrlj78tt9vrEY3cuVSCGKhpPDag_6HEoJb5pCe8q_x3UnFtzpMKHXr-uLM3zeo6n9RxSOLo8GOigPXQqBZOk5CZJIBUDa9YjRc-egn6Qu42kcOS-ZkJtNFe8u5FY5lx4srkgQcT53aGSfeh6u..&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;(I have edited the token value above for security)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Nov 2024 19:34:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2494741#M141573</guid>
      <dc:creator>himanshup</dc:creator>
      <dc:date>2024-11-26T19:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField to tRESTClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2496767#M141623</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Based on the example you provided in Postman, it appears that you only need the username value ("desri_tst") and not the entire JSON string. If that's the case, why did you use a tWriteJsonField to write a JSON string? Can you please explain this?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you only need the username in tRestClient component, you can use tFlowToIiterate to iterate and call the API for each username, eg:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;...tlogRow3--main(row9)--tFlowToIterate--iterate--tRestClient.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;on tRestClient, set the URL as:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;context.RestAPI_URL +&amp;nbsp;"community/users/" + (String)globalMap.get("row9.username“）+&amp;nbsp;"/disable/"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Shong&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2024 08:05:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2496767#M141623</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-12-09T08:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: tWriteJSONField to tRESTClient</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2497145#M141625</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Yes I did that route and have been able to make it work as intended.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="himanshup_0-1733846432870.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/175505iF9ACBBC209B25816/image-size/medium?v=v2&amp;amp;px=400" role="button" title="himanshup_0-1733846432870.png" alt="himanshup_0-1733846432870.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Dec 2024 16:00:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tWriteJSONField-to-tRESTClient/m-p/2497145#M141625</guid>
      <dc:creator>himanshup</dc:creator>
      <dc:date>2024-12-10T16:00:56Z</dc:date>
    </item>
  </channel>
</rss>

