azureazure-logic-appsapi-designazure-log-analyticsazure-sentinel

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


Solution

  • 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.