- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-14-2024 07:53 PM
Hello Community,
We have a catalog item that generates 2 tasks, I would like to send the standard RITM closed notification after the first sc_task is closed complete. For the 2nd task no notification will be sent. I copied the closed RITM notification to custom the condition and on the ootb but put Item is not my catalog item. I created a new event and business rule to go along with the new notification but I need to query the first task to make sure it is assigned to the correct group and state is Closed Complete. Any assistance is appreciated.
Business Rule
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 07:30 AM
Hi @purdue ,
Make below changes.
In business rule use below code
gs.eventQueue('ritm.test',current,current.request_item.requested_for.email,current.request_item.opened_by.email);
change table from requested item to catalog task
output: I have validated it, its working
-------------------------------------------------------------------------
If you found my response helpful, please consider selecting "Accept as Solution" and marking it as "Helpful." This not only supports me but also benefits the community.
Regards
Runjay Patel - ServiceNow Solution Architect
YouTube: https://www.youtube.com/@RunjayP
LinkedIn: https://www.linkedin.com/in/runjay
-------------------------------------------------------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 10:09 AM
Hello,
I updated the event syntax but still not working. I cannot change the notification table as it a ritm closed notification with the body below.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 07:20 AM
Hello @purdue
- There is a syntax issue with gs.eventQueue()
- The 3rd and 4th parameter should be string type.
- Modified script
gs.eventQueue('dynamic.closure.notify.cloud', current, current. request_item. requested_for.email, current. request_item. opened_by.email)
- To know more about gs.eventQueue() refer this.
I hope this will resolve the issue.
"If you found my answer helpful, please like and mark it as an "accepted solution". It helps others find the solution more easily and supports the community!"
Thank You
Juhi Poddar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2024 10:20 AM
No matter what I do the notification will not send. Is there anyway I can keep the business rule running on sc_req_item then do a advanced qualifier doing a glide record query on the task?
Thanks,
Chad
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-18-2024 06:32 AM
Hello,
Still does not work.
Thanks,
Chad