Flow Designer - "Wait for a duration of time" - does it work if variables have updated since original "Get Catalog Variables" lookup??

catherine_s
Tera Contributor

Hi, 

We have a Catalog Item where there will be a variable for "due date" that triggers a new task. We are using Flow Designer.

In this business scenario, there is a valid case where the due date could be changed. I was originally planning to use "wait for duration of time" and set it relative to the Due Date variable.  Does "wait for a duration of time" check the current value of the variable or does it take the original value from when we did the "Get Catalog Variables" lookup?

I was thinking another option may be to do a daily check to see if the due date has changed but this seems like a lot of unnecessary overhead, but it might be necessary if the flow uses the original due date value on the "wait for duration of time".

Thanks for your advice or ideas on this,

Catherine

 

 

 

11 REPLIES 11

SW7
Giga Guru
Catherine, If i undertsand you correctly can you use when due date equals get current date, then run? Thanks Steve

catherine_s
Tera Contributor

Hi Steve,

Thanks for that idea, I will switch up my logic slightly to do that, vs wait until the date - that might be more robust if the due date gets changed. 

I'll try it out and test over the next couple of days and provide an update if it worked/mark as correct answer

Thanks,

Catherine

 

Catherine,

You are welcome, any problems come back and we can perform some testing. 

Kind regards

Steve

catherine_s
Tera Contributor

Hi Steve,

When I went back and looked at it, this was what I was doing, just described a bit differently.

I got my answer to my original question via testing - Wait for Duration of Time uses the original date, it doesn't change if the date variable is updated.

We've taken a different path now, worked with the team who will be handling these particular tickets to come up with a different way to handle the expiry date, so this is no longer a requirement for us. Thanks for your suggestion though!

Catherine