<?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: tRest - Dynamic URLs and using data from input in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468899#M140941</link>
    <description>&lt;P&gt;If you read the endpoints and filenames from the file and use a tFlowToterate to iterate each row, you can access the current row using the following expression:&lt;/P&gt;
&lt;P&gt;rowNumber.columnName&lt;/P&gt;
&lt;P&gt;eg:&lt;/P&gt;
&lt;P&gt;tFileInputDelimited--main(row1)--tFlowToIterate--tRest--main--tFileOutputDelimited&lt;/P&gt;
&lt;P&gt;on tRest, you can set a dynamic URL:&lt;/P&gt;
&lt;P&gt;"host/"+row1.Endpoint&lt;/P&gt;
&lt;P&gt;on tFileOutputDelimited, set a dynamic Output file path:&lt;/P&gt;
&lt;P&gt;"D:\path\"+row1.Output+".json"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Jul 2024 01:22:53 GMT</pubDate>
    <dc:creator>Shicong_Hong</dc:creator>
    <dc:date>2024-07-09T01:22:53Z</dc:date>
    <item>
      <title>tRest - Dynamic URLs and using data from input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468392#M140928</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;
&lt;P&gt;Keep in mind that I`m a super beginner. So feel free to let me know if any part of my process could be done differently as well.&lt;/P&gt;
&lt;P&gt;I have a file with a list of endpoints and filenames (highlighted), and I`m using the tRest to go over all the Endpoints, download a list of JSON files, and output each file as a JSON file.&lt;/P&gt;
&lt;P&gt;My problem is that my filename comes from the input file, and I have no idea how to bring this information to the tRest output.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fevizcaino_0-1720209290326.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168980i2F23D9E6A3E3E6C1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fevizcaino_0-1720209290326.png" alt="fevizcaino_0-1720209290326.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I looked everywhere and saw some posts talking about using a tmap, but couldn`t grasp the idea. My tRest response has only the body and nothing else.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Fernando&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Jul 2024 19:56:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468392#M140928</guid>
      <dc:creator>fevizcaino</dc:creator>
      <dc:date>2024-07-05T19:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: tRest - Dynamic URLs and using data from input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468544#M140932</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where do you extract the endpoints? from a file with filename?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Shicong_Hong_0-1720404815894.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/168995i9B1D06886F9D23B5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Shicong_Hong_0-1720404815894.png" alt="Shicong_Hong_0-1720404815894.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Can you explain how endpoint and filename are related? That is, which filename should be used for the current endpoint's output?&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Shicong&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 02:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468544#M140932</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-07-08T02:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: tRest - Dynamic URLs and using data from input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468751#M140936</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;The highlighted input file looks like this:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="fevizcaino_0-1720446933224.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/169028i7AE46F4C3BFF7C60/image-size/medium?v=v2&amp;amp;px=400" role="button" title="fevizcaino_0-1720446933224.png" alt="fevizcaino_0-1720446933224.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;I`m using this file to manage all endpoints and also to have all filenames (Output). All endpoints return a JSON and I want to save each JSON to a different file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Fernando Vizcaino&lt;/P&gt;</description>
      <pubDate>Mon, 08 Jul 2024 13:57:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468751#M140936</guid>
      <dc:creator>fevizcaino</dc:creator>
      <dc:date>2024-07-08T13:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: tRest - Dynamic URLs and using data from input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468899#M140941</link>
      <description>&lt;P&gt;If you read the endpoints and filenames from the file and use a tFlowToterate to iterate each row, you can access the current row using the following expression:&lt;/P&gt;
&lt;P&gt;rowNumber.columnName&lt;/P&gt;
&lt;P&gt;eg:&lt;/P&gt;
&lt;P&gt;tFileInputDelimited--main(row1)--tFlowToIterate--tRest--main--tFileOutputDelimited&lt;/P&gt;
&lt;P&gt;on tRest, you can set a dynamic URL:&lt;/P&gt;
&lt;P&gt;"host/"+row1.Endpoint&lt;/P&gt;
&lt;P&gt;on tFileOutputDelimited, set a dynamic Output file path:&lt;/P&gt;
&lt;P&gt;"D:\path\"+row1.Output+".json"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 01:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2468899#M140941</guid>
      <dc:creator>Shicong_Hong</dc:creator>
      <dc:date>2024-07-09T01:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: tRest - Dynamic URLs and using data from input</title>
      <link>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2469176#M140952</link>
      <description>&lt;P&gt;Thank you!!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;While I was waiting for a reply, I developed another solution and you wouldn`t believe the number of components I used for that.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Only so I can understand clearly these variables from the FlowToIterate. I can use them wherever I want downstream after the Flowtoiterate, right? Even if I turn on the parallel execution?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best,&lt;/P&gt;
&lt;P&gt;Fernando Vizcaino&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2024 13:41:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/tRest-Dynamic-URLs-and-using-data-from-input/m-p/2469176#M140952</guid>
      <dc:creator>fevizcaino</dc:creator>
      <dc:date>2024-07-09T13:41:34Z</dc:date>
    </item>
  </channel>
</rss>

