Adding a Time Out for a Due for a Duration of Time Action in a Flow

terrieb
Tera Guru

We have flows working today that send out an email to the requestor and have a Wait for duration of time action for a period of 9 hours of sending emails.  Then once they get a response, they close the task linked to that action which closes the Request/RITM when it's closed.

 

Now they want a "time out period" added to that flow logic.  They want the emails to go out daily for 5 business days and if no response is received, they want the following "timed out" actions to occur:

 

1. Close the linked task as Closed Incomplete

2.  Create a new task

3.  After new task is Closed Complete, have the RITM/Request close as Closed Incomplete

 

They want to use this for catalog items that are issued to staff - like wireless headphones or keyboard/mouse, etc.   Staff request them and then "forget" to pick them up.  Meanwhile, the Service Desk pulls the items out of inventory - place in a pick up shelf - and it stays there until the item is picked up.

 

I know how to do the Wait for Duration of time to resend the email - just looking for the right action to do the "time out" (stop sending emails) and then do steps 1 - 3 above.

 

Thanks!

1 ACCEPTED SOLUTION

Hi @terrieb , 

 

You can add here (as branch 3) and wait for the RITM state closed complete, i haven't tested it, please do

HemanthM1_1-1764862755628.png

 

 

 

Accept and hit Helpful if it helps.

Thank you,
Hemanth
Certified Technical Architect (CTA), ServiceNow MVP 2024, 2025

View solution in original post

16 REPLIES 16

With the help of a little scripting. 😀

(although you could do it entirely through low code also)

increase-loop-counter.png

Also showing the no-code option, needs more pictures to explain, and it makes the flow a bit larger, but it works in the same way as the code shared earlier.

increase-loop-counter-no-code.png

 

increase-loop-counter-no-code-part1.png

 

increase-loop-counter-no-code-part2.png