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

Hi @Viraj Hudlikar ,

After 2 hours of termination date notification will trigger to all active assignment group, but afterwards every 2 hours email will trigger to all active assignment groups. Will this script include runs every 2 hours?

Thanks,
Sam

Thanks,
Sam

Ankur Bawiskar
Tera Patron
Tera Patron

@Samiksha2 

Do this

1) create a subflow which sends email i.e. notifies group members if the task is still open

2) Use do until in flow and invoke this subflow every 2 hours i.e. use Wait for Duration -> 2 hours and then invoke

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

Ankur Bawiskar
Tera Patron
Tera Patron

@Samiksha2 

You can trigger a flow on sc_task on Record Created with RITM->Item == 'Your Item' and use Do Until

Send email until Task is open

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 @Ankur Bawiskar ,
How can I add condition that after 2 hours of Termination date/time in the flow.

Thanks,
Sam

@Samiksha2 

something like this

1) create flow variable which holds that RITM variable value

2) then use Wait for duration with this value using Relative

workflow wait 2hours.gif

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