get a variable from another flow

Post your questions and help other users.

Moderator: Martin

Post Reply
User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

get a variable from another flow

Post by tsolignani » 04 Feb 2020 17:10

Good evening everyone.

I have a flow A that executes a certain action only if another flow B is running on its own.

On its own meaning that flow B is already running when flow A starts, id est flow B is not executed with an action from flow A.

The matter is that in flow A I need to get a value from a variable in flow B.

Do I necessarily have to config that variable as a global one or is there another way to retrieve its value from flow A?

Thank you.

ariloc
Posts: 109
Joined: 05 Jun 2016 21:36

Re: get a variable from another flow

Post by ariloc » 05 Feb 2020 05:41

As long as I know, the only other way to pass variables from one flow into other is that, if you execute one flow with Execute Flow action, you can check Wait called flows to finish, which enables you to check Return variables from the calling flow. So that way, if you call a flow, all variables generated in it can be used in the first flow.

So it depends on how your flows work, if you can take advantage of this feature or not. Maybe you can change them a little to make them work if this doesn't fit as they are.

User avatar
tsolignani
Posts: 187
Joined: 12 Jan 2019 11:53
Location: Vignola, Mo, Italy
Contact:

Re: get a variable from another flow

Post by tsolignani » 06 Feb 2020 15:12

Thank you, but that's not my use case unfortunately.

User avatar
Rafi4
Posts: 281
Joined: 01 Dec 2017 05:23

Re: get a variable from another flow

Post by Rafi4 » 06 Feb 2020 15:33

Hi
Upload a example flow


from record4
No.1 Automation app in play store Automagic Premium
Samsung Galaxy j2 non rooted.
Android 5.1.1

Post Reply