- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2016 04:16 AM
I wanted to send email notification to parent ticket owner(Assigned to) when child ticket state changed to 'Pending Validation' from 'Working Progress'. Can someone please advice me how to do this?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-21-2016 04:34 AM
1. Create an Event.
2. Write a Business rule on the child table, such that the created event gets triggered when the state changes to Pending Validation. Pass the parent ticket owner(can be retrieved via dot walking) as parm1 while triggering the event.
gs.eventQueue("name of the event", current, parent owner sys_id);
3. Create a notification and send it when the newly created event is triggered and send the notification to event parm1 (tick the checkbox).
If confused use this as reference - Events and Email Notification - ServiceNow Wiki
Thanks,
Nitin
PS : Mark the answer as Like, Helpful or Correct based on the impact
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 10:21 PM
Thanks Nitin
This is now working after I adjust the script. Also use the condition builder instead of adding the condition within the script as you advised.
Business Rule |
---|
if (current.state.changes() && current.state == -42) { gs.eventQueue("pending.validation", current, current.source.assigned_to.email, current.source.assigned_to.getDisplayValue()); } |
Many thanks Nitin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-24-2016 10:26 PM
You are welcome. Can you mark my answer as correct so that it would easy for others with the same question to find it easily
Thanks
Nitin.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-17-2017 09:12 AM
Hi Nitin,
I'm having the same issue. Please see my thread: need help with notification
Could you help me please?
Thanks,
Sarah
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-08-2020 09:42 AM
Hi Nitin,
I hope you are doing great..!!
Can you look into this question. This is almost similar to the question you have answered.
Thanks,
Jay