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
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (4,861)