Flow Control: If/Else Routers
not planned
Tayse Inventory
A good example of this suggestion would be working with success and failure webhooks.
If the publication is a success, the publication service sends the successful webhook, and integromat runs the true part of the scenario.
If the publication is a failure, the publication service sends the failure webhook, and integromat runs the false part of the scenario.
------------------------------------------------
BESTPRACTICE/SOLUTION: Here is a simple four steps guide for setting up the IF/ELSE logic with the Router module and a filter: https://support.integromat.com/hc/en-us/articles/360001988754#if-else
Log In
D
Darin Patterson
not planned
Since this capability can be accomplished with the router, we are not planning any changes in this area.
Carson
I would also add Switch-Case support. Yes, you can do that already with routers, but a better UI for it would be really cool. Think, a module with a switch and list of possible cases, then, a connector vertex for each option.
Dev TM
I would add to this, failure stepback
So if a result is/isnt successful step back or step forward to a future/past step
Working example, waiting on a API JSON result -> status = complete or pending.
On a pending result, I would step back to a sleep of 15 seconds, rerun the API, then JSON, test again if complete before proceeding with the workflow
Michal Máša
Here is a simple four steps guide for setting up the IF/ELSE logic with the Router module and a filter: https://support.integromat.com/hc/en-us/articles/360001988754#if-else
Comments are welcome :)
Michal Máša
Could you please provide an example? Thank you very much.
Tayse Inventory
Michal Máša: Michal, your earlier suggestion of router/filters seems to work, but I feel that it may not be the easiest thing for many users to understand. Maybe a tool, much like the "switch" tool, but instead, an "If/Else" where If the trigger = this, do this path, otherwise, do the other path.
Again, your router/filter is exactly that, but it may not be the easiest to comprehend for some users.
Michal Máša
Could you please explain why Router with filters could not do the job?
Nick B
Michal Máša: Fair point.