<?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 REST API job : create and send a CSV file via email in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313130#M84016</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's imagine that we have a request : create a REST get endpoint, which trigger an email sending of a CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I have a question :&lt;/B&gt; where, what space could be used to create this CSV file before sending it via email ?&lt;/P&gt;&lt;P&gt;Could I create a special folder in &amp;lt;runtime path&amp;gt;/container/data (or somewhere else), and specify this path in the REST API job, to create the CSV file there ? Or, is there a dedicated space for files created by REST API jobs ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This CSV file name could be like : YYYYMMDDHHmmss_uuid_afile.csv&lt;/P&gt;&lt;P&gt;&lt;B&gt;Another question here : how to generate a uuid ?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Data Integration job could automatically delete theses CSV files according to their age (date in their name).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 15 Nov 2024 22:44:00 GMT</pubDate>
    <dc:creator>Alpha549</dc:creator>
    <dc:date>2024-11-15T22:44:00Z</dc:date>
    <item>
      <title>REST API job : create and send a CSV file via email</title>
      <link>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313130#M84016</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let's imagine that we have a request : create a REST get endpoint, which trigger an email sending of a CSV file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;I have a question :&lt;/B&gt; where, what space could be used to create this CSV file before sending it via email ?&lt;/P&gt;&lt;P&gt;Could I create a special folder in &amp;lt;runtime path&amp;gt;/container/data (or somewhere else), and specify this path in the REST API job, to create the CSV file there ? Or, is there a dedicated space for files created by REST API jobs ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This CSV file name could be like : YYYYMMDDHHmmss_uuid_afile.csv&lt;/P&gt;&lt;P&gt;&lt;B&gt;Another question here : how to generate a uuid ?&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A Data Integration job could automatically delete theses CSV files according to their age (date in their name).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313130#M84016</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2024-11-15T22:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: REST API job : create and send a CSV file via email</title>
      <link>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313131#M84017</link>
      <description>&lt;P&gt;Hi @Alpha549 Alpha549​&amp;nbsp;,  &lt;/P&gt;&lt;P&gt;You can generate the CSV file under the container folder of Runtime, eg: &lt;/P&gt;&lt;P&gt;out1.csv &lt;/P&gt;&lt;P&gt;or &lt;/P&gt;&lt;P&gt;data/out1.csv&lt;/P&gt;&lt;P&gt;the CSV file will be created in &amp;lt;runtime installation directory&amp;gt;/container/data.&lt;/P&gt;&lt;P&gt;About UUID, you can generate a UUID string in Java, refer to this &lt;A href="https://www.uuidgenerator.net/dev-corner/java" alt="https://www.uuidgenerator.net/dev-corner/java" target="_blank"&gt;page&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After the CSV file is sent via email, you should use a tFileDelete to remove the file in the job.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 01:48:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313131#M84017</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-07-19T01:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: REST API job : create and send a CSV file via email</title>
      <link>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313132#M84018</link>
      <description>&lt;P&gt;Thank you @Shicong Hong​&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll create files in data/ and then delete them using tFileDelete !&lt;/P&gt;&lt;P&gt;Thank you also for the page concerning UUID generation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Topic solved !&lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2022 15:46:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/REST-API-job-create-and-send-a-CSV-file-via-email/m-p/2313132#M84018</guid>
      <dc:creator>Alpha549</dc:creator>
      <dc:date>2022-07-19T15:46:37Z</dc:date>
    </item>
  </channel>
</rss>

