In SharePoint Designer workflows it was easy to find your workflows, but how do you find out which Power Automate flow ran related to a specific item?

Troubleshooting Power Automate Flows

The previous posts in my series about troubleshooting flows in Microsoft are:

Recover from failure

Throws in flows

Try / Catch / Finally

Which Power Automate flow run ran on my item?

Have you had the same problem I’ve had? A user complains about a flow failing and you have no way of finding the failing flow. Especially when there are many instances of a flow running. It could mean that 100s of flow runs happened since the reported issue.

You might even try to rerun your flow but which one to pick?

Which Power Automate flow run ran on my item?
Which Power Automate flow run ran on my item?

The solution is now here!

I’m starting with the workflow function. I’m adding this function ins a Compose step

The workflow function in a compose action
The workflow function in a compose action

This gives me the following output.

{
    "id": "/workflows/3e3284b1d7ea4a17a7492025c29d98b7",
    "name": "fda4d8bb-dde9-38e2-f227-97ebcaf6c559",
    "type": "Microsoft.Logic/workflows",
    "location": "uksouth",
    "tags": {
        "flowDisplayName": "Untitled flow",
        "licenseContextConfigName": "CONTEXT_USER-092E5A703D8940FF8FB0E3D84FF7669D_POWERAUTOMATE_PREMIUM40K",
        "environmentName": "301e2fe6-89b8-ebbd-8997-93567940f5a5",
        "logicAppName": "fda4d8bb-dde9-38e2-f227-97ebcaf6c559",
        "environmentWorkflowId": "301e2fe6:2D89b8:2Debbd:2D8997:2D93567940f5a5-ea3a1fb6:2D8570:2D65be:2Deb74:2D889b24db7d4d",
        "xrmWorkflowId": "ea3a1fb6-8570-65be-eb74-889b24db7d4d",
        "environmentFlowSuspensionReason": "301e2fe6:2D89b8:2Debbd:2D8997:2D93567940f5a5-None",
        "sharingType": "CommonDataService",
        "state": "Enabled",
        "createdTime": "12/10/2025 2:46:17 PM",
        "lastModifiedTime": "12/10/2025 2:46:17 PM",
        "createdBy": "092e5a70-3d89-40ff-8fb0-e3d84ff7669d",
        "triggerType": "Instant",
        "createdByUserId": "3985C6A611D84C1384A91847F555AE47-301E2FE689B8EBBD899793567940F5A5-ENV"
    },
    "run": {
        "id": "/workflows/3e3284b1d7ea4a17a7492025c29d98b7/runs/08584362289001465793381833482CU17",
        "name": "08584362289001465793381833482CU17",
        "type": "Microsoft.Logic/workflows/runs"
    }
}

Ok the above is just a bit of json but this is actually very helpful stuff. Before looking further at the above json I’m going to have a look at the url of my flow history. That matches the above run:

https://make.powerautomate.com/environments/301e2fe6-89b8-ebbd-8997-93567940f5a5/flows/ea3a1fb6-8570-65be-eb74-889b24db7d4d/runs/08584362289001465793381833482CU17

There are 3 guids that I need to find aso that I can build up the flow history url.

The first guid is myย environmentName (301e2fe6-89b8-ebbd-8997-93567940f5a5), then I’ve got the flow name (ย ea3a1fb6-8570-65be-eb74-889b24db7d4d) and finally the run (08584362289001465793381833482CU17).

Now all I need to do is update my triggering list item in SharePoint with the URL and I can find my flow history back!

The details steps can be found in part 2


Discover more from SharePains

Subscribe to get the latest posts sent to your email.

Related Posts

5 thoughts on “Which Power Automate Flow ran on my item?

    1. Not sure if that would work though. The workflow function gives you the details of the flow while it is running. Once a flow has failed the status will be succeeded or failed but then the workflow function can’t be running anymore. If one flow could collect the workflow details form another flow run then that would be great.

  1. This does not appear to work anymore. The workflow() function returns a โ€œnameโ€ property that does not match the GUID of flow. The actual GUID of the flow does not exist in any of the data returned from workflow(). I had this running for awhile, so the logic described here was correct at one point. Now when I check the value of workflow on an existing flow run, the data returned is wrong.
    The fact that the meaning of the data returned from this flow is not documented by Microsoft is an indication that it is subject to change.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.