I have to send notification prior 15 minutes to change request planned start date.

niveditakumari
Mega Sage

Hi, 

 

I have to send notification prior 15 minutes to change request planned start date. I have created attached screenshot things. 

niveditakumari_0-1707494244396.png

 

niveditakumari_1-1707494274400.png 

niveditakumari_3-1707494308647.png

 

Can you please correct that. 

 

Regards, 

Nivedita 

 

 

9 REPLIES 9

Please select asia/kolkata time zone.

Danish Bhairag2
Tera Sage
Tera Sage

Hi @niveditakumari ,

 

You can try creating a direct filter with scheduled start date is 15 minutes convert it into query n use the same in ur scheduled script.

 

Thanks,

Danish

 

Rohini S Sane
Tera Guru

Hi @niveditakumari ,

You can create after business rule on insert and update and also create event and notification. its working on my PDI.

Business rule script :

var time = new GlideTime();
time.setValue("00:15:00");
var dtime = new GlideDateTime(current.u_start_date);
dtime.subtract(time);
gs.addInfoMessage(dtime);
gs.eventQueueScheduled("panned_date_test", current, gs.getUserID(), gs.getUserName(),dtime);
 
condition1.pngBR1.png
 
 
 
Please Mark Helpful !
 
Regards,
Rohini Sane

 

Hi @Rohini S Sane

 

To which table you have created business rule and do I need to give any condition in when to run as planned start changes and what will be better approach after business rule insert update or async business rule.

Can you please confirm for above. 

 

Regards, 

Nivedita 

 

 

Sumanth16
Kilo Patron

Hi, 

 

You can use the "wait for condition" (or) "Run Script" activity in workflow to validate 15 minutes time for your validation and configure "Send Notification" in workflow.

Thanks & Regards,

Sumanth Meda.