How to create email notification for REQ,RITM, INC, SCTASK, TASK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 11:05 AM
When a REQ,RITM, INC, SCTASK, TASK is assigned to Security_Team, any status change should trigger email, and the status should be included in the subject line of the email. How can I create a single notification for all these when the status is changed any of these
Note: This should be applicable only when the ticket is with Security_Team.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2025 04:26 AM
Ohoo @Vijay Kumar4
Mine is indeed on task_sla table. You can change your table to task SLA then it will work 🙂 as its working for me and for all the tables it will work.
CC: @Ankur Bawiskar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2025 04:18 AM
I believe your notification is on task_sla table and hence ${task.state} will work
but @Vijay Kumar4 has notification on task table itself
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-02-2025 12:59 PM
hi @Vijay Kumar4 ,
To create a single notification for REQ, RITM, incident, SCTASK, and task updates in ServiceNow, you can utilize a notification on the relevant tables.
- Navigate to System Notification > Notifications: and create a new notification.
- Configure the notification details:
- Name: A descriptive name for the notification.
- Send to: The email address or user group to receive the notification.
- Subject: The subject of the email.
- Message: The content of the email.
- Data pills: Use data pills to include relevant information from the record (e.g., record number, comments, etc.).
- Save the notification .
OR
- Navigate to System Policy > Events > Registry: and create a new event.
- Give it a name: (e.g., "my_company.update.notification").
- Set the Table field: to the table where you want to trigger the notification (e.g., sc_req_item for RITM, incident for incident, task for task, etc.).
- Navigate to System Business Rules: and create a new business rule.
- Select the table: where you want to trigger the event (e.g., sc_req_item, incident, task, etc.).
- Choose the trigger: (e.g., "After insert", "After update") based on when the notification should fire.
- Write the script: to trigger the event when a specific condition is met (e.g., when a comment is added, or a status changes).
// Example for RITM table
if (current.isInsert() || current.update_comments != null) {
new GlideRecord('sys_event').insert(new Event('my_company.update.notification', current.sys_id));
}
- Replace my_company.update.notification with your event name.
- Replace current.sys_id with the appropriate record ID for the table.
- Navigate to System Notification > Notifications: and create a new notification.
- Set the Event field: to the event you created (e.g., "my_company.update.notification").
- Configure the notification details:
- Name: A descriptive name for the notification.
- Send to: The email address or user group to receive the notification.
- Subject: The subject of the email.
- Message: The content of the email.
- Data pills: Use data pills to include relevant information from the record (e.g., record number, comments, etc.).
- Save the notification .
Kindly mark my answer as helpful and accept solution if it helped you in anyway.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2025 03:03 AM
Thank you for your detailed response. I have configured the email notification as you suggested, but during testing, the email is only sent when the state changes in the TASK record and does not trigger for REQ, RITM, SCTASK, or INC.
Additionally, in the second method, while creating the event, there is only one table option available to select, which is also not working as expected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-03-2025 03:39 AM
I will recommend to have separate notifications for each table considering in future what if the email subject and body changes
At that time developer will have to separate those anyways.
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader