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

OlaN
Tera Sage
Tera Sage

Hi,

Have looked at using the "do the following until" Flow logic?

You could have it loop the waiting until some specific event happens, and if so skip the waiting and continue on.

Basically you would in the loop wait for an amount of time, then send the email, and increase a loop counter.

And you could have two exit conditions, either the loop counter reaches a max, or the process has moved on by someone picking up the goods.

Here's an example I used on another question, see if you get where I am going at, or ask for more detail if needed.

do-the-following-until.png

This is what they are looking for - flow actions wise

terrieb_2-1764856137760.png

 

It seems I understood your requirement.

Take a look at this updated suggestion.

do-the-following-until-version2.png

Let me try this methodology - will let you know if it works.

 

Thanks!

How do you use the "Set Flow Variables" to do increase loop counter?

 

When I select that, this is what i get:

terrieb_1-1764877366373.png

Never used this Flow Logic before - thanks!