Utsav Patel
Utsav Patel

Reputation: 359

Store variable in Azure logic app to use in next run

I'm fetching data from API, but I want to fetch data from the last time when logic run app to current time (to reduce redundancy). So where can I store the last date-time so I can use it in API? API provide that feature to pass time but in azure logic app where can I store last date information?

Current logic app design

Logic App Designer

Upvotes: 1

Views: 4498

Answers (2)

Russell Munro
Russell Munro

Reputation: 563

You need to persist variables externally. You could use a blob storage like in the blog post bellow.

Try this, it was helpful to me: azure-logic-apps-storing-variables-between-runs

Upvotes: 2

George Chen
George Chen

Reputation: 14324

For now logic app doesn't support such variable could be shared in different runs.

So if you want to implement this feature, you could use azure storage queue or service bus to do it, create a message to store value you want to use in next run. And every time after getting the value remember to delete the original data, also do put message action to store new data to queue or service bus.

Hope this could help you, if you still have other problem please feel free to let me know.

Upvotes: 2

Related Questions