Get name of flow

Post your questions and help other users.

Moderator: Martin

Post Reply
tschaedl
Posts: 45
Joined: 28 Feb 2013 22:17

Get name of flow

Post by tschaedl » 13 Oct 2014 18:28

Hi,

is there a possibility to get the name of the flow, which is currently running? I want to use action "SetFlowState" to disable all flows of a group excluding the running one.

Thx,
Thomas

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Get name of flow

Post by kintrupf » 13 Oct 2014 20:42

tschaedl wrote: is there a possibility to get the name of the flow, which is currently running? I want to use action "SetFlowState" to disable all flows of a group excluding the running one.
Each flow supplies the variable flow_name, which, of course, contains the name of the flow ;)

tschaedl
Posts: 45
Joined: 28 Feb 2013 22:17

Re: Get name of flow

Post by tschaedl » 14 Oct 2014 09:22

Hi kintrupf,

thx for this information. Where did you found this. I didn't found "flow_name" either in the forum nor in the help pages.

Regards,
Thomas

User avatar
kintrupf
Posts: 257
Joined: 10 Sep 2013 08:59

Re: Get name of flow

Post by kintrupf » 14 Oct 2014 09:54

Where did I find it? That's a really good question ;-)
I'm a very regular user of Automagic, so I just learned over time...

To find out which variables are supplied by a flow do this:
  • create a new flow
  • add the condition Debug to the empty trigger
  • execute the flow manually
The Debug condition displays all variables, and everything that does not start with "global_" is defined by the flow itself.
Currently these are the variables flow_name, trigger and triggertime.

User avatar
Bushmills
Posts: 286
Joined: 23 Sep 2014 21:56

Re: Get name of flow

Post by Bushmills » 14 Oct 2014 11:13

... or easier:
create a new flow
add any action (for example the action you want to use flow_name in)
tap menu (3 bars or dots)
select "choose variable")
from the list of variables, pick "{flow_name}"

Post Reply