<?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: Send tLogrow output to tsendemail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212378#M10037</link>
    <description>&lt;P&gt;Hi Shong, thanks for the answer.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I canno't make it work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've added a tJavaFlex (after the if condition) with your code but I think it doesn't know what's filename.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also, how can I link the tJavaFlex with the email? with a main?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&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; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend error.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9X6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150233i84BC75F1799E2240/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9X6.png" alt="0683p000009M9X6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturatalend.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Pm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127808iFAE2E17F0764A5FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Pm.png" alt="0683p000009M9Pm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Apr 2020 10:35:57 GMT</pubDate>
    <dc:creator>JavierP2</dc:creator>
    <dc:date>2020-04-20T10:35:57Z</dc:date>
    <item>
      <title>Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212374#M10033</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I'm working on a simple program, but as i'm quite new not sure how to continue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The program have to do the following:&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1) Connect to a SFTP server (ok&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;2) List the files into a SFTP folder (ok)&lt;/P&gt; 
&lt;P&gt;3) Move the files into a computer folder (ok)&lt;/P&gt; 
&lt;P&gt;4) Send a mail confirming whose files have been moved (I think need to send by email the tLogRow output?)&lt;/P&gt; 
&lt;P&gt;5) If there's no files on the SFTP folder I also want to receive a different mail saying that there was no files into the SFTP. (no idea how to do it)&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Captura2.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Vo.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/152009i129A47EA5A365564/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Vo.png" alt="0683p000009M9Vo.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;The tSendMail is well configured as I've managed to receive test emails. Can you please help me with&amp;nbsp; points 4 and 5?&amp;nbsp; I think it's something to write into the tSendMail..&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 02:39:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212374#M10033</guid>
      <dc:creator>JavierP2</dc:creator>
      <dc:date>2024-11-16T02:39:11Z</dc:date>
    </item>
    <item>
      <title>Re: Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212375#M10034</link>
      <description>use runIf to trigger the tSendMail components, there is a global variable defined on tFTPFileList that counts the total number of file found, you can use it as the condition of runIf connector, eg: 
&lt;BR /&gt;tFTPFilelist--babababa 
&lt;BR /&gt; -runIf1--tSendmail1 
&lt;BR /&gt; -runIf2-tSendmail2 
&lt;BR /&gt; 
&lt;BR /&gt;set the condition of runIf1 as: 
&lt;BR /&gt;((Integer)globalMap.get("tFTPFileList_1_NB_FILE"))&amp;gt;0 
&lt;BR /&gt;// it will send emails if there are at least one file are found and processed. 
&lt;BR /&gt;set the condition of runIf2 as: 
&lt;BR /&gt;((Integer)globalMap.get("tFTPFileList_1_NB_FILE"))==0 
&lt;BR /&gt; 
&lt;BR /&gt;// it will send another email if there is no files are found. 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 17 Apr 2020 18:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212375#M10034</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-17T18:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212376#M10035</link>
      <description>&lt;P&gt;Hi!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It worked like a charm, thanks a lot!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have other question, not sure if needed to open other post.. it's possible to add the tLogRow output to the email?&amp;nbsp; just to know name of files that been procesed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Fri, 17 Apr 2020 22:47:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212376#M10035</guid>
      <dc:creator>JavierP2</dc:creator>
      <dc:date>2020-04-17T22:47:14Z</dc:date>
    </item>
    <item>
      <title>Re: Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212377#M10036</link>
      <description>Hi 
&lt;BR /&gt;You can append the data to a context variable on tJavaFlex for used later on tSendMail, eg: 
&lt;BR /&gt;tFtpFileList--.....bababa---tJavaFlex.... 
&lt;BR /&gt; 
&lt;BR /&gt;In the main part of tJavaFlex: 
&lt;BR /&gt;if(context.filename.equals("")){ 
&lt;BR /&gt;context.filename=row1.filename; 
&lt;BR /&gt;}else{ 
&lt;BR /&gt;context.filename=context.filename+"\r\n"+row1.filename; 
&lt;BR /&gt;} 
&lt;BR /&gt; 
&lt;BR /&gt;on the message field of tSendmail, you can use the context variable like: 
&lt;BR /&gt;"The file names are: \r\n"+context.filename 
&lt;BR /&gt; 
&lt;BR /&gt;Regards 
&lt;BR /&gt;Shong</description>
      <pubDate>Sat, 18 Apr 2020 03:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212377#M10036</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-18T03:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212378#M10037</link>
      <description>&lt;P&gt;Hi Shong, thanks for the answer.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I canno't make it work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've added a tJavaFlex (after the if condition) with your code but I think it doesn't know what's filename.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Also, how can I link the tJavaFlex with the email? with a main?&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot &lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009MACn.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154443iC5B8CACEF3D12C6A/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009MACn.png" alt="0683p000009MACn.png" /&gt;&lt;/span&gt;&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; 
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="talend error.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9X6.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/150233i84BC75F1799E2240/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9X6.png" alt="0683p000009M9X6.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capturatalend.PNG" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9Pm.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/127808iFAE2E17F0764A5FE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9Pm.png" alt="0683p000009M9Pm.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 10:35:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212378#M10037</guid>
      <dc:creator>JavierP2</dc:creator>
      <dc:date>2020-04-20T10:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212379#M10038</link>
      <description>Hi 
&lt;BR /&gt;Don't need to link tJavaFlex to tSendMail, just add a tJavaFlex component, and link tLogRow to it. tSendMail components are triggered by RunIf connector as you did.
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Mon, 20 Apr 2020 17:48:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212379#M10038</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-04-20T17:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: Send tLogrow output to tsendemail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212380#M10039</link>
      <description>&lt;P&gt;It worked! thanks a lot.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Last question (not sure if possible to do it), I also want to once done, move again the files to another folder 'historic' and add an OK at the end of the filename so.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;1111.xml to other FTP folder but with OK_1111.xml name.&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I have the procedure done with a tFTPput but I don't know how to pass the filename into the "Newname" variable. If I put "" it keeps the name but cannot add the OK_ at the beggining.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;I've also tried in tFTPput Newname&amp;nbsp; "OK_"+ context.filename but it doenst work.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Thanks a lot!!&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Apr 2020 19:54:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Send-tLogrow-output-to-tsendemail/m-p/2212380#M10039</guid>
      <dc:creator>JavierP2</dc:creator>
      <dc:date>2020-04-20T19:54:03Z</dc:date>
    </item>
  </channel>
</rss>

