Prevent Self-Notification for Requested For User Comments on RITMs
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Currently, when the Requested For user adds an update in Additional Comments on a Request Item (RITM), the system triggers the notification "Your request RITM has new comments" to the same user who posted the comment. When the Requested For user posts a comment on their own RITM, the system should not send the "Your request has new comments" notification to that user. Notifications should continue to be sent to other intended recipients as per existing notification logic.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
5 hours ago
Hi @saranya26
Try this:
To prevent the "Your request has new comments" notification from sending to the user who posted it, while still notifying others, you can use a Business Rule to control the event trigger, combined with notification settings.
- Disable "Send to Event Creator" and update Notification
- In the Application Navigator, go to System Notification > Email > Notifications.
- Open the notification responsible for the comments alert.
- In the Send when section, select Event is fired.
- In the Event name field, select the event you created (like ritm.comment.notification)
- On the Who will receive tab, ensure the Send to event creator checkbox is unchecked. Also verify that your intended recipients are selected.
2.Create a Custom Business Rule
- Navigate to System Definition > Business Rules and click New.
- Name: Evaluate RITM Comments
- Table: sc_req_item
- Advanced: Check the box.
- When: Before
- Insert,Update: Checked
- Filter Condition: Additional comments changes
(function executeRule(current, previous /*null when async*/) {
var currentUser = gs.getUserID();
if (current.requested_for != currentUser) {
gs.eventQueue('ritm.comment.notification', current, current.requested_for, currentUser); //Replace with your event name 'ritm.comment.notification'
}
})(current, previous);
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 hours ago
Hi @saranya26 ,
Navigate to the notification record that sends the "Your request RITM has new comments" email.
Open the notification and scroll down to the "When to send" section.
Look for the checkbox labeled "Send to event creator" .
Uncheck this box .
Save the notification.
After this, the system will no longer send the notification to the person who triggered the event (the Requested For user posting a comment), but will continue to send it to all other intended recipients based on the notification's other "Who will receive" rules