Notification to requestor if task state is on the pending and rejected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 07:28 PM
Hi Experts
I want to trigger the notification to requester through workflow, when task is pending and rejected.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 10:13 PM
when we grab the notification option on the workflow there is no option such option when to send whom to send.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 10:22 PM
Hello @dhineshkumar ,
Please use the addressee to mention whom to send.
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.
Best Regards,
Nayan Dhamane
ServiceNow Community Rising Star 2023.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-09-2023 03:14 AM
We can add the requested for but how to put the condition sc task state condition pending and rejected.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-07-2023 10:25 PM - edited 08-07-2023 10:38 PM
Hello @dhineshkumar,
These are the 3 methods by which you can trigger a notification in workflow but the most preferred one is second one.
- Create a workflow “Notification” activity.
- Use the “event” activity in a workflow to trigger a notification.
- 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