How to trigger a notification in Change request

nikhitha24
Tera Guru

Can anyone please help me on the below notification solution.

If the actual end time is been more than 48hrs, i want to trigger a closure reminder notification.

I have created a flow designer for this but it is not working.

Please help me on this.

1 ACCEPTED SOLUTION

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello @nikhitha24 , 
                                 You can achieve this using Schedule job as below

 

var gr = new GlideRecord('change_request');
gr.addQuery('state', 4); // Closed Complete you can add any condition here to filter records
gr.addQuery('actual_end_time', '>', gs.hoursAgo(48));  // Asuming you have time field on change request
gr.query();
while (gr.next()) {
    gs.eventQueue('reminder.change.request', gr, 'parm1', 'parm2');  // pass parameter if required 
}

 

Note: You need to create Event first Refer Creating Schedule job to send notification. 

 

Kindly mark correct and helpful if applicable

View solution in original post

2 REPLIES 2

Ravi Chandra_K
Kilo Patron
Kilo Patron

Hello @nikhitha24 

Greetings!

Please refer the below video:

https://youtu.be/hVctTUMWIcs

Please Mark the Answer as correct solution and helpful if helped!

 

Kind Regards,

Ravi Chandra.

Chetan Mahajan
Kilo Sage
Kilo Sage

Hello @nikhitha24 , 
                                 You can achieve this using Schedule job as below

 

var gr = new GlideRecord('change_request');
gr.addQuery('state', 4); // Closed Complete you can add any condition here to filter records
gr.addQuery('actual_end_time', '>', gs.hoursAgo(48));  // Asuming you have time field on change request
gr.query();
while (gr.next()) {
    gs.eventQueue('reminder.change.request', gr, 'parm1', 'parm2');  // pass parameter if required 
}

 

Note: You need to create Event first Refer Creating Schedule job to send notification. 

 

Kindly mark correct and helpful if applicable