Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Custom Notification Preview

Jon23
Mega Sage

I am currently working on creating a custom Notification Preview, utilizing the OOB functionality found in notification records. I have successfully copied the OOB code and display the notification, but I would like to take it a step further.

 

Specifically, I am interested in pre-selecting the Preview Record. Is there a way to pass a parameter that sets the Preview Record value? Any guidance or suggestions on this would be greatly appreciated.

 

Jon23_0-1761170854659.png

1 ACCEPTED SOLUTION

Jon23
Mega Sage

I ended up creating a custom UI page. This custom UI page calls a script include that gathers all the components such as layout, subject, and body. Once these components are collected, it replaces the ${..} tags with values from a record. The HTML is then passed back and displayed to the user in the modal.

View solution in original post

5 REPLIES 5

Jon23
Mega Sage

I ended up creating a custom UI page. This custom UI page calls a script include that gathers all the components such as layout, subject, and body. Once these components are collected, it replaces the ${..} tags with values from a record. The HTML is then passed back and displayed to the user in the modal.