Send notifications of all assigned group of the sctask after submission of the request

Samiksha2
Mega Sage

Hi All,
I have created a Termination form. (Termination variable- Date/Time type).

After form submitted, a approval will send to manager and after approval, 27 catalog tasks will create. (Added in the flow).

Requirement is:

"Starting 2 hours after the Termination Date and Time, For each Task which is still open, Notify all members of the groups which have not completed their tickets".

 

I was trying to create scheduled jobs but I am stuck how to add script to check for every 2 hours.

 

 Please help me here.

 

Thanks,
Sam

20 REPLIES 20

@Samiksha2 

ensure flow runs as System user

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

Yes it System User.

Samiksha2_0-1739438817161.png

 

@Samiksha2 

Did you Test the flow using Test button? If yes then what's your timezone?

Ensure you set it with GMT to perform the testing

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

Hi,
I tested by changing my time zone to GMT. 

Samiksha2_0-1739442277804.png

 

Still it is not calculating the correct time.
I have one question. User will be in different time zones. Then how it will work if it calculates 2 hours.
Is there any other way to calculate only 2 hours?

Thanks,
Sam

Mark Manders
Mega Patron

Add a subflow that gets the RITM and Date as inputs and just have it run in a 'do the following until' -> wait 2 hours, check on all open sc_tasks, for each, trigger notification to assignment group. 


Please mark any helpful or correct solutions as such. That helps others find their solutions.
Mark