Possible to put Logic App Run History Identifier, status, starttime and duration inside logic app action input field

Mahesh Totageri 21 Reputation points
2023-03-17T11:43:41.2366667+00:00

Hi Team,

Possible to put Logic App Run History Identifier, status, start time and duration inside logic app action input field to track the result.

Below the reference which we are looking.

If possible kindly help on this.

User's image

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,850 questions
Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
2,887 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sonny Gillissen 3,346 Reputation points
    2023-03-18T12:50:33.37+00:00

    Hi Mahesh Totageri

    Thanks for reaching out on Microsoft Q&A! I’m happy to work with you on solving your query.

    The status of a Logic App is always “Running” when in runtime. All other status are reported when the Logic App finishes, and therefor you’re not able to retrieve the status on runtime.

    What is the actual use case here? Why would you want to know the status of a Logic App during it’s runtime?

    The same goes for your start time and end time. What you could do is use the utcNow() function to retrieve the current date time, and store it somewhere when the Logic App starts and stops.

    One other option, be it not on runtime of the Logic App, is connect your Logic App to a Log Analytics Workspace. Over there you can find the start time, stop time and status of the Logic App. You can refer to the article below for more details:

    https://learn.microsoft.com/en-us/azure/logic-apps/monitor-workflows-collect-diagnostic-data?tabs=consumption

    For storing additional data from runtime you can also use the Azure Monitor Logs Connector available in Logic Apps:

    https://learn.microsoft.com/en-us/azure/azure-monitor/logs/logicapp-flow-connector

    Please click “Accept answer” when you find my response is helpful. Feel free to drop additional queries in the comments!

    0 comments No comments