Notification to requestor if task state is on the pending and rejected.

dhineshkumar
Tera Guru

Hi Experts 

 

I want to trigger the notification to requester through workflow, when task is pending and rejected. 

 

Thank you.

 

8 REPLIES 8

@Nayan Dhamane 

when we grab the notification option on the workflow there is no option such option when to send whom to send.

 

Hello @dhineshkumar ,

Please use the addressee to mention whom to send.Screenshot 2023-08-08 at 10.49.20 AM.png

If you want to send it to a variable use advance check box and mention below script.

answer = current.variables.requested_for; //your variable name

and in message you can mention the subject and body.

If my answer solved your issue, please mark my answer as Correct & Helpful based on the Impact

Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.

@Nayan Dhamane 

We can add the requested for but how to put the condition sc task state condition pending and rejected.

ritu_saluja
Tera Expert

Hello @dhineshkumar,

These are the 3 methods by which you can trigger a notification in workflow but the most preferred one is second one.

  1. Create a workflow “Notification” activity.
  2. Use the “event” activity in a workflow to trigger a notification.
  3. Create a script activity in a workflow, and use the “gs.eventQueue()” function to trigger a notification.

Please check this video:

https://www.youtube.com/watch?v=nsFnKX9SmVw

 

Please mark my answer correct and helpful if it helps you

 

event queue in servicenow event queue syntax in servicenow __________________________________________________________________________________________ If you have any query please connect with us on Facebook https://www.facebook.com/ServiceNowKida/ if you find my video useful, please like and share