<?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: Merge and Send Mail in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340505#M108530</link>
    <description>&lt;P&gt;You'd have to aggregate your results (tAggregate* ) into 1 single row and send that to the mail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're triggering tSendMail twice&lt;/P&gt;</description>
    <pubDate>Fri, 30 Dec 2022 11:08:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2022-12-30T11:08:03Z</dc:date>
    <item>
      <title>Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340502#M108527</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created this job in which there are two tables Employee and Employee_INC. Employee table is my source table if any new record is inserted then only that particular record should be inserted for that I am separating old records and new inserted records using tmap. Then in flow meter I am reading the information and then catching the information using flow meter catcher then I am storing into log table tbdboutput2 after that I am sending mail for the action.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am getting two different mails one for new inserted records and other for old records separately.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bEwR6AAK.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/145585i721476293E9B3EEE/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bEwR6AAK.png" alt="0695b00000bEwR6AAK.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I combine both and get both the data in single mail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;Amit &lt;/P&gt;</description>
      <pubDate>Fri, 15 Nov 2024 22:14:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340502#M108527</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2024-11-15T22:14:07Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340503#M108528</link>
      <description>&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;There are two tFlowMeter components in the job, each tFlowMeter will trigger tFlowMeterCatcher execution, that's why you receive two emails.&lt;/P&gt;&lt;P&gt;You can store the data into memory using tHashOutput, in the end of job, read the data from memory and send only one email.&lt;/P&gt;&lt;P&gt;eg..&lt;/P&gt;&lt;P&gt;tFlowMeterCatcher...tlogrow--tDBOutput--main--tHashOutput&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tPostJob--oncomponentok--tHashInput--main--tSendMail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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;</description>
      <pubDate>Fri, 30 Dec 2022 02:58:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340503#M108528</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-30T02:58:40Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340504#M108529</link>
      <description>&lt;P&gt;Hi Shong,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As per your instructions I did the same still I am getting two different mails.&lt;/P&gt;&lt;P&gt;Please have a look on it.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bF5vyAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/141027iA8A77E5A486923ED/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bF5vyAAC.png" alt="0695b00000bF5vyAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit &lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 08:40:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340504#M108529</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2022-12-30T08:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340505#M108530</link>
      <description>&lt;P&gt;You'd have to aggregate your results (tAggregate* ) into 1 single row and send that to the mail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You're triggering tSendMail twice&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 11:08:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340505#M108530</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-12-30T11:08:03Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340506#M108531</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, I added that aggregate row component now, but I am getting null values in my mail.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bF8xsAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/147418i70C5F39A541E551D/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bF8xsAAC.png" alt="0695b00000bF8xsAAC.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is what I want to print in my mail. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0695b00000bF90hAAC.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/135307i2C86E45A327C0D5E/image-size/large?v=v2&amp;amp;px=999" role="button" title="0695b00000bF90hAAC.png" alt="0695b00000bF90hAAC.png" /&gt;&lt;/span&gt;------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please have a look.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Amit&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 18:24:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340506#M108531</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2022-12-30T18:24:43Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340507#M108532</link>
      <description>&lt;P&gt;What could be the value for Action? No of records=inserted records+old records?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 02:53:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340507#M108532</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-03T02:53:12Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340508#M108533</link>
      <description>&lt;P&gt;In the first image it is clearly visible that 5 old records and 0 new Inserted records.  &lt;/P&gt;&lt;P&gt;Action : Old Records &lt;/P&gt;&lt;P&gt;No of Records  = 5&lt;/P&gt;&lt;P&gt;Action : Inserted &lt;/P&gt;&lt;P&gt;No of Records = 0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 05:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340508#M108533</guid>
      <dc:creator>Amit4</dc:creator>
      <dc:date>2023-01-03T05:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: Merge and Send Mail</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340509#M108534</link>
      <description>&lt;P&gt;The requirement is clear now. To implement it, define a context variable let's call it message, string type. In the beginning job, initialize the value of the variable with execution time and job name on a tJava:&lt;/P&gt;&lt;P&gt;context.message="This is notification for the insertIncrmentalJob"+"\r\n"+"Time at Job execution: "+TalendDate.formatDate("yyyy-MM-dd HH:mm:ss", TalendDate.getCurrentDate())+"\r\n"+"JobName: "+jobName;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Append the action and no of records value to the context variable on a tJavaRow after tFlowMeterCatcher.&lt;/P&gt;&lt;P&gt;tFlowMeterCatcher--tDBOutput--main--tJavaRow&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;on tJavaRow:&lt;/P&gt;&lt;P&gt;context.message=context.message+"\r\n"+"Action: "+input_row.label+"\r\n"+"No of records: "+input_row.count;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the end of job, send an email using tSendMail, set the Message field with context variable context.message.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tPostJob--oncomponent--tSendMail&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope it helps!&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;</description>
      <pubDate>Tue, 03 Jan 2023 07:32:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Merge-and-Send-Mail/m-p/2340509#M108534</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2023-01-03T07:32:51Z</dc:date>
    </item>
  </channel>
</rss>

