logo

NJP

"Test Notification" Tool

Import · Dec 23, 2020 · article

Part of the Developer Toolbox Series. Available as a separate Update Set on Share.

A quick way to test certain settings on a Notification. For instance, if using a client's email infrastructure instead of the ServiceNow servers, I'll use it to ensure the configured email account has the proper "sendAs" permissions to send the email as another user when setting the "From" field. Otherwise the email would be tagged as "spoof".

Adds a number of Modules to the "Developer Toolbox" Application Menu:

image

The Modules show different parts of the "solution". The Event is triggered by the two UI Actions. They appear when you are viewing ANY Notification record that is set to trigger on the "u.fpc.test.notification" Event:

image

The "Test This Notification (To Me)" one sends the email to the current user. The "Test This Notification" version displays a UI Page in a GlideModal window allowing the user to select up to 3 users to send the email to:

image

The "Outgoing Mail" shows any emails sent out that day with a subject that starts with "Test Notification".

The Update Set is available here on the Share site.

View original source

https://www.servicenow.com/community/developer-blog/quot-test-notification-quot-tool/ba-p/2273542