<?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: Add global variable to tSendMail subject in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242564#M29348</link>
    <description>I think for some reason the global variable is empty because the following when I send it outlook says the email has no subject.&lt;BR /&gt;&lt;BR /&gt;(String)globalMap.get("myJob") + "ESB Job Failure"&lt;BR /&gt;and&lt;BR /&gt;(String)globalMap.get("myJob")&lt;BR /&gt;&lt;BR /&gt;I can't think why since it works fine in the body of the email which is apart of the same thing</description>
    <pubDate>Tue, 07 Jan 2020 21:34:33 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2020-01-07T21:34:33Z</dc:date>
    <item>
      <title>Add global variable to tSendMail subject</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242559#M29343</link>
      <description>&lt;P&gt;Who am I able to add a global variable to the subject of tSendMail? Whenever I try it is not adding the global variable to the subject. I was able to get it to work for the body of the email but can't seem to get the subject to work.&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="a.png" style="width: 678px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="0683p000009M9IG.png"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/154966iD2D6B69CABF20522/image-size/large?v=v2&amp;amp;px=999" role="button" title="0683p000009M9IG.png" alt="0683p000009M9IG.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;In the above picture the body works but for some reason the subject does not. Any advice to getting this to work?&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:39:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242559#M29343</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T03:39:17Z</dc:date>
    </item>
    <item>
      <title>Re: Add global variable to tSendMail subject</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242560#M29344</link>
      <description>&lt;P&gt;This may or may not be the issue, but you should be casting to the appropriate data type when you retrieve values from the globalMap&lt;/P&gt;&lt;PRE&gt;(String)globalMap.get("myJob")&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jan 2020 20:35:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242560#M29344</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T20:35:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add global variable to tSendMail subject</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242561#M29345</link>
      <description>&lt;P&gt;Unfortunately, that was not the issue but thank you for the information. I will update them now to use casting.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2020 20:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242561#M29345</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T20:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add global variable to tSendMail subject</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242562#M29346</link>
      <description>&lt;P&gt;Is the global being set correctly/before you send an email?&lt;/P&gt;
&lt;P&gt;Usually you can just reference the job's name from&amp;nbsp; built-in value&lt;/P&gt;
&lt;PRE&gt;jobName&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Jan 2020 21:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242562#M29346</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T21:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add global variable to tSendMail subject</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242563#M29347</link>
      <description>Not sure to be honest. I only ever did it as (String)globalMap.get("myJob") and this works other places such as the email body and sql queries but not in the subject line so not sure what is going on.</description>
      <pubDate>Tue, 07 Jan 2020 21:29:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242563#M29347</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T21:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: Add global variable to tSendMail subject</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242564#M29348</link>
      <description>I think for some reason the global variable is empty because the following when I send it outlook says the email has no subject.&lt;BR /&gt;&lt;BR /&gt;(String)globalMap.get("myJob") + "ESB Job Failure"&lt;BR /&gt;and&lt;BR /&gt;(String)globalMap.get("myJob")&lt;BR /&gt;&lt;BR /&gt;I can't think why since it works fine in the body of the email which is apart of the same thing</description>
      <pubDate>Tue, 07 Jan 2020 21:34:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Add-global-variable-to-tSendMail-subject/m-p/2242564#M29348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-01-07T21:34:33Z</dc:date>
    </item>
  </channel>
</rss>

