Flow Control: Do...While function
Cor Schutte
Hello,
Please can you look into a do...while function. This would be very useful with many api's pagination and for asynchronous actions where you need to check the status before continuing a scenario.
------------------------------
BESTPRACTICE:
One of the possible workarounds is as follows:
- Insert the Flow Control > Repeatermodule before the sequence of modules that should be repeated until a specific condition is met. Fill the maximum number of repetitions in theRepeatsfield.
- Append the Tools > Set a variablemodule at the end of the sequence to set aSkipvariable totrue.
- Place a filter before this module to pass only when the condition to end the repetitions is met.
- Insert the Tools > Get a variablemodule right after theRepeaterand configure it to fetch theSkipvariable.
- Finally insert a filter after the Tools > Get a variablemodule to proceed only if theSkipvariable is nottrue.
Please note that as the
Tools > Get a variable
module is executed for each repetition, the number of operations this workaround consumes will be equal to the number you specified in the Repeater
's Repeats
field plus all the operations consumed by the repeatedly executed sequence of modules.SEE ALSO:
- Flow Control > Throw(planned)
- Discussion on Facebook Integromat Community group: https://web.facebook.com/groups/integromat/permalink/2083097395134216/
Log In
Andrew Lisi
Any update on this? This makes many creating many scenarios very difficult without this basic function.
Viktor Kacenak
How is this not implemented yet? This is crazy
TJ
Still can't believe this isn't implemented. Every time I'm doing something that requires pagination I end up slamming my head on my desk because I need to come up with some idiotic workaround.
D
Darin Patterson
Merged in a post:
Do/While of the Repeater - Complementary Module of the Repeater.
Pedro Vaz
To handle a conditional, a complementary module for the repeater needs to be created.
Example:
I have a repeater before a route.
I have a route with 2 paths =>
Filter: if the status of the Run is different from "Completed," follow Path 1: Sleep for 5 seconds.
Filter: if the status of the Run is "Completed," follow Path 2: Send data via HTTP => "Repeater's finalization module."
Pavel Zagorodnikh
So true.
Such a pain without it when working with Slack users
Dan Saavedra
Any update on this?
Laurent Wiart
Need this as well, or at least in the interim, a way to change the "i" variable of the Repeater module, to not loop 10000 times if the variable is set to the value that allows to exit the Repeater...
Ben Hogan
So... this doesn't exist? (!) - Xero API needs this!
Alexey Chekanov
+1!
David Zisner
YEA!!! We do need this one
Load More
→