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.

Helpful resources

Announcements
MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power automate tips 768x460 v2.png

Restore a Deleted Flow

Did you know that you could restore a deleted flow? Check out this helpful article.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

Users online (2,274)