mwascak
Kilo Contributor

Mario,
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.

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.

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.


I will give it a try. Thank you for your suggestion.


Hi mwascak,



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?


Hi Edgar



Just wondering did you ever get this working, I have the same requirement and would appreciate any advice


David Stutter
Tera Guru

I made something similar.



First I created an own UI Page which contains the Email Preview: <g:inline template="notification_display.xml"/>.


With buttons "Send"/"Cancel" which will trigger the event for sending the email.


Simple Ajax call for gs.eventQueue(..).



The UI Action Button opens the UI Page and set the following preferences for the email preview:


.setPreference('sysparm_notification_id', [notification_sys_id]);


.setPreference('sysparm_target_id', [target_sys_id] );