Advanced flow - Delay with variable option

Hi,

I’m using delay in a flow where defining a variable to set the delay length in the beginning before doing (same) stuff for all delay length and ending with one delay and action would make more sense then having to make a lot more stuff happening in the flow.

Is this something that could be implemented?

-Ståle

1 Like

I’ve read your post several times, but I don’t get it. Can you add a flow screenshot maybe?

Sure! I just added a few of the triggers for this flow as an example. i have 7 “triggers” and 3 delay settings at the moment, but adding more later. If it was possible to use the number variable set in the logic at the start directly into the delay, it would be more efficient and easier then looping into every number to check if its the correct delay time and use one delay for each.

-Ståle

Guess this ie easier:

The Code

// Wait Seconds
// console.log(args[0]);
await wait( args[0]*1000 ); // Seconds to ms,
return true;
3 Likes

Ah! Thank you! Didn’t think of scripts! I’ll use this insted!

-Ståle