Flow Designer - Wait for a duration

Meerk
Tera Contributor

Hi All,

 

To preface: I am very new to Service Now development and flow designer, so I am learning as I go. I apologize in advance if I use confusing or the wrong terminology.

 

I've been tasked with creating a flow for waivers for our organization. These waivers last a pre-set amount of time (ex: 1 month, 3 month, 6 month), at which point the ticket for the waiver is supposed to be closed. This had been a manual process that our organization is trying to automate.

 

What I've done is created a simple flow that is basically, "if 1 month waiver, wait 1 month and update record" updating the state from active to closed. However, I've stumbled across some documentation that indicates that wait for a duration flow logic "you can enter a wait value of up to 999 hours".

 

Meerk_0-1739997809525.png

However, when creating my flow I've been able to enter values greater than 999.

Meerk_1-1739997839692.png

 

The terminology makes it sound like I shouldn't have been able to enter a value over 999. It's also possible that I'm misinterpretting and it actually means that any value over 999 won't work.

 

Do you guys know what kind of behaviour this might have? And could a potential workaround be to use several 900 hour waits sequentially?

 

Thanks for any and all help you can provide and I look forward to learning more about Service Now and Flow Designer. 🙂

 

Thanks,

Mark

1 ACCEPTED SOLUTION

Of course I agree, lets wait if somebody more experienced with flows gives you a better solution 👌

 

Regarding flow variables:

1. Define a variable via 'More action menu' (three dots in the top right corner) > Flow variables

variable1.JPG

2. Select type Integer so the variable value is a number

3. In the flow, use Flow logic > Set Flow Variables step

variable2.JPG

4. Define initial value

variable3.JPG

5. Add 'Do the following until' step and set until condition

variable3a.JPG

6. Add 'Set Flow Variables' step, set value for variable and use function to increment by one

variable4.JPG

7. Then do rest of your logic (sending e-mail or trigger an event for notification)

 

Flow should look like this:

variable5.JPG

 

Martin

 

View solution in original post

5 REPLIES 5

Happy to help, good luck with development 👍