How to send a notification when a paricular sctask is closed
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:30 AM
We have a requirement to trigger the notification when a a particlar sctask is closed complete of a request item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 02:07 AM
Hi @Anirudh_saraf ,
Create an event in the flow trigger the notification post the specific catalog closure.
You can refer to the below article on events for better clarity.
https://www.servicenow.com/community/developer-articles/events-in-servicenow/ta-p/2326498
If my answer helped in any way, please mark it as ✅Correct & 👍Helpful
Thanks,
Mahathi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 04:00 AM
To the same email I added in my previous reply. You can add another condition to make it run only for one task.
Add Task's short description or something that you use to identify it .
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 01:59 AM
There are 2 ways depending on when you want to send and for what type of sctask you want to send.
1.Send the notification when sc_task is closed complete and request item is "catalog_item_name" or any "variable name". Accordingly you can specify the conditions in the filter or advanced view.
2. Send notification when a event is fired which we can use if we have task completion required for catalog task in workflow or directly create a notification in workflow :
You can trigger an event with below command :
gs.eventQueue("Event Name",current,parm1,parm2);
Refer this url for event registry :
https://www.servicenow.com/community/developer-articles/events-in-servicenow/ta-p/2326498
-Bharti
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2024 02:00 AM
Hi @Anirudh_saraf follow these steps
1. create notification on sc_task table.
2. Add a condition state is closed.