Schedule script execution

Drishti
Tera Guru

Hi Community,

I have a requirement where a notification needs to be fired 4 days prior to last day  worked date (this field is available on HR case ).

The steps I have followed is :

1) Created event.

2) Created schedule script execution. Will call the event created in step 1 .

3) Created a notification and attaching event.

 

My concern is ,I want this date validation to be run specific to users time zone. I am guessing this we can resolve via addDaysUTC method but what we have to select in time zone field of schedule script execution record created for this.

Hope my query is clear. Please guide me to achieve this.

Thanks in advance 🙂

8 REPLIES 8

@Ankur Bawiskar 
As you suggested that we can use flow in this condition , so my query is what will be the trigger point.
Because we have requirement that notification needs to be fired 4 days prior to last day  worked date (this field is available on HR case) but we can't configure this condition in condition builder of flow designer trigger point.

@Drishti 

since you require 4 days and that's not available in condition builder, then use scheduled job

I forgot that part.

If my response helped please mark it correct and close the thread so that it benefits future readers.

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

And now while using schedule job - concern here is this that how should we run this schedule script execution so that all users from different zone get the notification correctly at their correct time .

 

@Drishti 

you will have to run scheduled job in particular timezone example GMT
When the users want the email? on the starting time of that date in their record?

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