How to trigger survey notification after x days of RITM closing?

Abhi33
Tera Expert

Hi All,

I have created a Survey which is going to be triggered when the RITM is closed.

I have create a notification to send this survey link to the User.

How can this notification be sent to the user after x days of RITM closure.

Regards,

Abhi

1 ACCEPTED SOLUTION

Hi,

As per your question you want email to be sent x days after RITM is closed

Then your BR, event, notification should be on RITM table

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

View solution in original post

17 REPLIES 17

find_real_file.png

Hi,

there is no sc_req_item table to be selected

Hi,

yes sc_req_item table is not present.

you need to enable some plugin

Flow designer does not trigger on Request Item [sc_req_item] and Catalog Task [sc_task]

OR

You can create after update BR on sc_req_item table

Condition: State [Changes To] Closed

Create event on RITM table and notification on RITM table

Trigger the event and it would be processed after 2 days

var gdt = new GlideDateTime();

gdt.addDaysUTC(2);
       gs.eventQueueScheduled("your_event_name",current,gs.getUserID(),gs.getUserName(),gdt);

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

find_real_file.png

find_real_file.png

for testing I've used 100 sec but thats not working the notification should trigger after ritm closure

 

Business rule should be after update. I updated my above comment

in line 6 do this

var gdt = new GlideDateTime();

// don't give the closed time field as the current time is the one when RITM got closed

Regards
Ankur

Regards,
Ankur
✨ Certified Technical Architect  ||  ✨ 9x ServiceNow MVP  ||  ✨ ServiceNow Community Leader

find_real_file.png

the notification is configured on assessment instance table

find_real_file.png

Business rule to call the event.
find_real_file.png

find_real_file.png

the BR and event registered is on sc_req_item table