cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Passing variable from 1 flow execution to the next


Hi there,

 

I did some research and could not find if passing a variable from 1 flow execution to the next is doable.
Let me explain what I'd like to do:
My flow is triggered by a scheduler, every 5 mn.
First execution, Flow runs a query on an API which return an integer (say 'nbhits'), and store 'nbhits' in a variable say nbhits_var.
Second execution 5mn later, Flow runs the same query on the API and obtain nbhits, compare nbhits with nbhits_var. If nbhits>nbhits_var then send notification.

Is this feasible in Flow, or do I need to store the variable somewhere else e.g. an external database?
My preference would be NOT to store the variable elsewhere.

 

Many thanks

Alex

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Anonymous,

 

I'm afraid that the second run of a flow cannot store the data from previous run. You need to store the variable to other available data sources. 

You could post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Mona Li

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-monli-msft
Community Support
Community Support

Hi @Anonymous,

 

I'm afraid that the second run of a flow cannot store the data from previous run. You need to store the variable to other available data sources. 

You could post this idea in the Flow Ideas forum, so it might be considered for future releases.

https://powerusers.microsoft.com/t5/Flow-Ideas/idb-p/FlowIdeas

 

Regards,

Mona Li

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,627)