Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

How to send a notification when a paricular sctask is closed

Anirudh_saraf
Tera Contributor

We have a requirement to trigger the notification when a a particlar sctask is closed complete of a request item

8 REPLIES 8

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

@Anirudh_saraf 

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 .

-Anurag

B Y
Tera Contributor

@Anirudh_saraf ,

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.

BY_0-1719996380097.png

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  :

BY_1-1719996925980.png

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

Harish Bainsla
Kilo Patron

Hi @Anirudh_saraf follow these steps

1. create notification on sc_task table.

2. Add a condition state is closed.