remove system generated comments from the notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:04 PM
Hi Team ,
When ever a new comment were added into the RITM , Then there will be notification is trigger to the user .
perview of the email
logs
For every one hour notification is triggering
Notification
The ' System generated comments ' we don't want send comments . Like this condition we want include here .
can anyone please help me here . how to achieve this .
Please provide screenshot , for better understanding .
NOTE :- We want restrict only system generated comments in the notifications.
Thanks in advance
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:13 PM
Hi,
Create an email script as below and put it into your notification removing the existing ${current.comments} line:
(function runMailScript(current, template, email, email_action, event) {
var notes = current.comments.getJournalEntry(1);
notes = notes.replace('Additional Comments', ' ');
template.print('<pre>'+notes+'</pre>');
})(current, template, email, email_action, event);
If Helpful please mark as Helpful/Correct.
Thanks & Regards,
Sumanth Meda
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:22 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 07:29 PM
Hi @nameisnani ,
Please create an Email Notification script and call it in email notification.
Please refer to below thread:
https://www.servicenow.com/community/developer-forum/how-to-call-email-script-to-notification/m-p/18...
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-12-2024 08:09 PM