<?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>question Re: Preview Email from Form in Developer forum</title>
    <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079398#M736324</link>
    <description>&lt;P&gt;Mario,&lt;BR /&gt;I've gotten this to work through a slightly different process. I've added a UI Action button on the form that when certain conditions are met (i.e. Priority 1, etc) a 'Send Email' is shown. &lt;BR /&gt;&lt;BR /&gt;When this button is clicked it throws a pop-up which contains the exact information that will go out in the email notification. There is also verbiage that states "By clicking OK you are attesting to the information that is going out in this email, please hit cancel if changes need to be made." The pop-up itself is made of HTML is virtually identical to the email that gets sent out.&lt;BR /&gt; &lt;BR /&gt;Once the user hits the OK button an event on the UI action kicks off the email notification and populates the email notification based on the pre-filled fields on the incident form.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 02 Apr 2012 14:41:38 GMT</pubDate>
    <dc:creator>mwascak</dc:creator>
    <dc:date>2012-04-02T14:41:38Z</dc:date>
    <item>
      <title>Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079397#M736323</link>
      <description>&lt;P&gt;Good day all,&lt;BR /&gt;&lt;BR /&gt;I have a business requirement to place the existing "Preview HTML body" UI action from a form as a button. I have created a "communication" table to support a process whereby ITIL workers can request a system outage communication to be sent to key stakeholders after a short approval process. One of the requirements I have is that the requestor and approvers be able to preview the email from the table form. I have two ideas on how to possibly implement this but cannot get either to work:&lt;BR /&gt;&lt;BR /&gt;1. Click UI Action button or email client icon&amp;gt; Launch email client with "Send" button hidden - this has close to the desired effect in that it will show a pop-up with the template populated with the current information from the dbase - but we do not want to send using this, because we want to control when the message is actually sent. How would you hide the Send button?&lt;BR /&gt;&lt;BR /&gt;2. Click UI Action button&amp;gt; trigger the "Preview HTML body" action - when I inserted this action into the communication form, it throws an error "email not found: " - I surmise because the script is intended to run off the sys_email table and is keyed to a specific email event. Can we tweak this script to pull the current sys id an populate?&lt;BR /&gt;&lt;BR /&gt;Any ideas on to make these work or any new ideas would be greatly appreciated. Thank you.&lt;/P&gt;</description>
      <pubDate>Sun, 01 Apr 2012 14:07:09 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079397#M736323</guid>
      <dc:creator>MC_Soria</dc:creator>
      <dc:date>2012-04-01T14:07:09Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079398#M736324</link>
      <description>&lt;P&gt;Mario,&lt;BR /&gt;I've gotten this to work through a slightly different process. I've added a UI Action button on the form that when certain conditions are met (i.e. Priority 1, etc) a 'Send Email' is shown. &lt;BR /&gt;&lt;BR /&gt;When this button is clicked it throws a pop-up which contains the exact information that will go out in the email notification. There is also verbiage that states "By clicking OK you are attesting to the information that is going out in this email, please hit cancel if changes need to be made." The pop-up itself is made of HTML is virtually identical to the email that gets sent out.&lt;BR /&gt; &lt;BR /&gt;Once the user hits the OK button an event on the UI action kicks off the email notification and populates the email notification based on the pre-filled fields on the incident form.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 02 Apr 2012 14:41:38 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079398#M736324</guid>
      <dc:creator>mwascak</dc:creator>
      <dc:date>2012-04-02T14:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079399#M736325</link>
      <description>&lt;P&gt;I will give it a try. Thank you for your suggestion.&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 09 Apr 2012 18:00:43 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079399#M736325</guid>
      <dc:creator>MC_Soria</dc:creator>
      <dc:date>2012-04-09T18:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079400#M736326</link>
      <description>&lt;P&gt;Hi mwascak,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;We just started developing our Service Now and we have this similar business requirement. Would you mind sharing the steps and scripts you used to setup this?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 14 Mar 2014 07:45:24 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079400#M736326</guid>
      <dc:creator>edgar_evangelis</dc:creator>
      <dc:date>2014-03-14T07:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079401#M736327</link>
      <description>&lt;P&gt;Hi Edgar&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Just wondering did you ever get this working, I have the same requirement and would appreciate any advice&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2017 09:38:11 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079401#M736327</guid>
      <dc:creator>brendanwilson84</dc:creator>
      <dc:date>2017-03-10T09:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079402#M736328</link>
      <description>&lt;P&gt;I made something similar.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;First I created an own UI Page which contains the Email Preview: &amp;lt;g:inline template="notification_display.xml"/&amp;gt;.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;With buttons "Send"/"Cancel" which will trigger the event for sending the email.&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Simple Ajax call for gs.eventQueue(..).&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;The UI Action Button opens the UI Page and set the following preferences for the email preview:&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;.setPreference('sysparm_notification_id', [notification_sys_id]);&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;.setPreference('sysparm_target_id', [target_sys_id] );&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Mar 2017 10:20:28 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079402#M736328</guid>
      <dc:creator>David Stutter</dc:creator>
      <dc:date>2017-03-10T10:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079403#M736329</link>
      <description>&lt;P&gt;Hi David,&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;&lt;/P&gt;&lt;BR /&gt;&lt;P&gt;Can you please share the details of your UI Page?&lt;/P&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 31 Jan 2018 06:53:03 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079403#M736329</guid>
      <dc:creator>edgar_evangelis</dc:creator>
      <dc:date>2018-01-31T06:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079404#M736330</link>
      <description>&lt;P&gt;Hi dastu.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have tried what you mentioned above bbut it isn't taking the target sys_id of the record. It&amp;nbsp; is randamly taking the record and the gives the information of that record. Can you please let me know how to pass the record to the notification preview so that it grabs the information from that record and shows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Niranjan.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 22:37:33 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079404#M736330</guid>
      <dc:creator>Niranjan Danda</dc:creator>
      <dc:date>2018-06-14T22:37:33Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079405#M736331</link>
      <description>&lt;P&gt;Hi Edgar,&lt;/P&gt;
&lt;P&gt;Did you ever found a solution for this. Please let me know since i'm also facing the same problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Niranjan.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jun 2018 22:38:21 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079405#M736331</guid>
      <dc:creator>Niranjan Danda</dc:creator>
      <dc:date>2018-06-14T22:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079406#M736332</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a similar requirement. Were you able to figure out&amp;nbsp;how to pass the current record to the notification preview?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Nayanthara&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jul 2018 09:08:00 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079406#M736332</guid>
      <dc:creator>nayanthara</dc:creator>
      <dc:date>2018-07-05T09:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Preview Email from Form</title>
      <link>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079407#M736333</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Not yet, i was backtracked from that work since that was not a urgent requirement. Please update the community if you ever find the solution for this or find a new way to achieve the functionality.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;Niranjan.&lt;/P&gt;</description>
      <pubDate>Tue, 10 Jul 2018 22:01:08 GMT</pubDate>
      <guid>https://www.servicenow.com/community/developer-forum/preview-email-from-form/m-p/2079407#M736333</guid>
      <dc:creator>Niranjan Danda</dc:creator>
      <dc:date>2018-07-10T22:01:08Z</dc:date>
    </item>
  </channel>
</rss>

