<?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 Use script Parameters or messages in an Alert email body in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Use-script-Parameters-or-messages-in-an-Alert-email-body/m-p/1039543#M936133</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I've set up Email Alerts for a script that runs on my desktop each morning.&amp;nbsp; The scrip extracts several parameters from our data wharehouse to store as QVDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At current, the script is set to fire an email if the script errors at any point, accomplished by setting the Condition as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ScriptErrorCount&lt;/SPAN&gt; &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be great is if the email can send a parameter or some sort of output from the script to tell me what part has failed.&amp;nbsp;&amp;nbsp; I've tried to put these sort of things in the Alert message, but it just outputs everything as text unless I only specify the variable (ie.&amp;nbsp; I can't combine freetext and variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;If so, how do I declare multiple variables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea in the script itself would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Metric 1:&lt;/P&gt;&lt;P&gt;Load etc,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ScriptError = 0&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Let Metric1Error = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Metric 2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load etc,,,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if ScriptError = 0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;then&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Let Metric2Error = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Feb 2016 00:28:54 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-16T00:28:54Z</dc:date>
    <item>
      <title>Use script Parameters or messages in an Alert email body</title>
      <link>https://community.qlik.com/t5/QlikView/Use-script-Parameters-or-messages-in-an-Alert-email-body/m-p/1039543#M936133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I've set up Email Alerts for a script that runs on my desktop each morning.&amp;nbsp; The scrip extracts several parameters from our data wharehouse to store as QVDs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At current, the script is set to fire an email if the script errors at any point, accomplished by setting the Condition as &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;ScriptErrorCount&lt;/SPAN&gt; &amp;gt; 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What would be great is if the email can send a parameter or some sort of output from the script to tell me what part has failed.&amp;nbsp;&amp;nbsp; I've tried to put these sort of things in the Alert message, but it just outputs everything as text unless I only specify the variable (ie.&amp;nbsp; I can't combine freetext and variable).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible ?&lt;/P&gt;&lt;P&gt;If so, how do I declare multiple variables ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Idea in the script itself would be &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Metric 1:&lt;/P&gt;&lt;P&gt;Load etc,,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if ScriptError = 0&lt;/P&gt;&lt;P&gt;then&lt;/P&gt;&lt;P&gt;Let Metric1Error = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Metric 2:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Load etc,,,&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;if ScriptError = 0&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;then&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Let Metric2Error = 1&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Feb 2016 00:28:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Use-script-Parameters-or-messages-in-an-Alert-email-body/m-p/1039543#M936133</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-16T00:28:54Z</dc:date>
    </item>
  </channel>
</rss>

