Add condition for which trigger started flow

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
vertigo
Posts: 147
Joined: 28 Oct 2018 00:28

Add condition for which trigger started flow

Post by vertigo » 30 Oct 2019 17:52

When a flow is set to launch from multiple triggers, it would be nice to be able to use a condition to be able to execute different branches based on which trigger activated it.

Horschte
Posts: 56
Joined: 03 Nov 2014 18:00

Re: Add condition for which trigger started flow

Post by Horschte » 31 Oct 2019 11:13

You can already do that. For testing purposes use a Debug Dialog to find out the exact name of the trigger which started the flow. Then you can use a Condition - Expression to check.

Code: Select all

trigger == "my_trigger_1"

vertigo
Posts: 147
Joined: 28 Oct 2018 00:28

Re: Add condition for which trigger started flow

Post by vertigo » 31 Oct 2019 15:44

Thanks! Didn't even think of using a script. I still think it wouldn't be a bad idea to make an actual condition out of it, to make it more obvious how to do it and easier, but I leave that up to Martin to decide if it's worth the effort.

Locked