<?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 Create different file after javaRow (one row - one file ) after tRESTClient responses in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Create-different-file-after-javaRow-one-row-one-file-after/m-p/2374970#M137484</link>
    <description>&lt;P&gt;Hello , i want to create a tfileOutputRaw after each api call to store the response in the file &lt;/P&gt;&lt;P&gt;here is my job design : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L0NPXAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133227iE3FBDD8AB4EFB062/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L0NPXAA3.png" alt="0695b00000L0NPXAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that when in my file name i just put &lt;B&gt;TalendDate.getDate("yyyy-MM-dd-HHmmss") to get different files with each api response but the problem is that i get only the last api response&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;How to get different files for each api response .&lt;/B&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 16 Nov 2021 14:47:03 GMT</pubDate>
    <dc:creator>kakooo16</dc:creator>
    <dc:date>2021-11-16T14:47:03Z</dc:date>
    <item>
      <title>Create different file after javaRow (one row - one file ) after tRESTClient responses</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-different-file-after-javaRow-one-row-one-file-after/m-p/2374970#M137484</link>
      <description>&lt;P&gt;Hello , i want to create a tfileOutputRaw after each api call to store the response in the file &lt;/P&gt;&lt;P&gt;here is my job design : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000L0NPXAA3.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/133227iE3FBDD8AB4EFB062/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000L0NPXAA3.png" alt="0695b00000L0NPXAA3.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I thought that when in my file name i just put &lt;B&gt;TalendDate.getDate("yyyy-MM-dd-HHmmss") to get different files with each api response but the problem is that i get only the last api response&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;B&gt;How to get different files for each api response .&lt;/B&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Nov 2021 14:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-different-file-after-javaRow-one-row-one-file-after/m-p/2374970#M137484</guid>
      <dc:creator>kakooo16</dc:creator>
      <dc:date>2021-11-16T14:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create different file after javaRow (one row - one file ) after tRESTClient responses</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Create-different-file-after-javaRow-one-row-one-file-after/m-p/2374971#M137485</link>
      <description>&lt;P&gt;Hi @not specified not specified​, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you may be nearly there with this. Try placing a tFlowToIterate between the tJavaRow and the tRestClient. The instructions for the tFlowToIterate are here: https://help.talend.com/r/en-US/7.3/orchestration/tflowtoiterate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then after the tFlowToIterate, connect a tIterateToFlow. The instructions are found here: https://help.talend.com/r/en-US/7.3/orchestration/titeratetoflow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the tIterateToFlow component you will need to recreate each of the columns that are fed to the tFlowToIterate. So if your tJavaRow outputs 3 columns called....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Column1"&lt;/P&gt;&lt;P&gt;"Column2"&lt;/P&gt;&lt;P&gt;"Column3"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;.... you will need to recreate those in tIterateToFlow and populate the columns with the values that are temporarily stored in the globalMap by the tFlowToIterate. If they are all Strings, the columns in the tIterateToFlow will look something like this....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;((String)globalMap.get("row13.Column1"))&lt;/P&gt;&lt;P&gt;((String)globalMap.get("row13.Column2"))&lt;/P&gt;&lt;P&gt;((String)globalMap.get("row13.Column3"))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the format of the globalMap.get "key". It is the name of the row feeding the tFlowToIterate, a full stop and the name of the column. The globalMap get requests must be cast to the type of column.&lt;/P&gt;</description>
      <pubDate>Thu, 18 Nov 2021 18:51:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Create-different-file-after-javaRow-one-row-one-file-after/m-p/2374971#M137485</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2021-11-18T18:51:39Z</dc:date>
    </item>
  </channel>
</rss>

