logo

NJP

45. Send Notification without creating a Notification Record

Import · May 27, 2024 · article

Can you send notifications in ServiceNow without creating a notification record in the notification table?

that’s right, with the “GlideEmailOutbound()” method, you can send email notifications directly from your script without additional records.

Here’s an example code

var email = new GlideEmailOutbound();

email.setSubject(‘New Task Assigned’);

email.setBody(‘A new task has been assigned to you.’);

email.addRecipient(‘xyz@example.com’);

email.save();

View original source

https://medium.com/@LearnITbyPrashant/46-send-notification-without-creating-a-notification-record-f7327608ba90?source=rss-d005fc598f0a------2