RITM Notification

purdue
Kilo Sage

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

Screenshot 2024-11-14 at 10.50.19 PM.pngScreenshot 2024-11-14 at 10.53.06 PM.png

1 ACCEPTED SOLUTION

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

RunjayPatel_0-1731684556267.png

 

output: I have validated it, its working

RunjayPatel_1-1731684615563.png

 

-------------------------------------------------------------------------

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

-------------------------------------------------------------------------

 

 

View solution in original post

8 REPLIES 8

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.

Screenshot 2024-11-15 at 1.07.13 PM.png

Juhi Poddar
Kilo Patron

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

purdue
Kilo Sage

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

purdue
Kilo Sage

Hello,

Still does not work.

Thanks,

Chad