Preview/Edit Email Notfications

ben75
Kilo Explorer

Hi All,

I would take all the help I can get for this one

I need to be able to preview and edit email notifications before they are sent from an incident/change form:

Currently, on the incident form, when we click on a button called "Send emails", several emails are sent to different users.

The idea is to catch these emails in a new related lis before they are sent .The users should then be able to click on the wanted emails from the related list in order to preview and edit them. Once he's done, he should have the possibility to send them from the related list.

My first guess it to use the "preview email" ui action and then adapt it but I'm not sure if I should go down this rode.

It seems very custom so I'm open to alternative solutions..

Any thoughts on this?

Thank you

Ben

9 REPLIES 9

henry_cheng
ServiceNow Employee
ServiceNow Employee

Hi Ben,



Your guessing is correct. Currently when you open email notification there is an UI action "Preview Notification" can help you review the email contents before sending out. After you click on it you need to enter/select a record number in the "Preview Record" field then a preview will be generated based on the information in this record.



Cheers


Henry


Thanks for the reply!



The problem is that this doesn't let you edit the body of the email and the subject. Is there a way to do this?



Cheers


Ben


The SN Nerd
Giga Sage
Giga Sage

I have recently done this. You need to


  • Copy the UI action and pass in the sys_id of the notification you want to use
  • Modify the UI macro notification_preview to set the record picker to the appropriate sys_id

ServiceNow Nerd
ServiceNow Developer MVP 2020-2022
ServiceNow Community MVP 2019-2022

Thank you for the answer,



I guess I could do this for the preview but the main problem is how to edit it in a way that the modifcation can be saved and displayed in the final email.



Thanks


Ben