3 Ways to Get the Flow URL in Power Automate

Do you want to get a flow run URL in Power Automate?

You’ll need the flow URL if you want to see the details of the flow run to investigate which steps failed and which ones successfully ran.

Depending on your needs, you can find this URL in several places and you can even generate it dynamically within a flow run.

This post is going to show you all the ways to get the flow URL for any flow run in Power Automate.

Get a Flow URL

The simplest way to get the flow run URL is by finding it in your list of previous runs.

You can access this list from the flow detail screen, but this will require you to find and click on the desired flow.

Here are the steps to get the URL for your flow run.

  1. Go to the My flows tab in the Power Automate portal.
  2. Click on the Cloud flows tab.
  3. Click on the flow name within the list of your flows.

This will take you to the flow detail screen for that flow which will give you an overview of the flow including flow name, owners, status, connectors used, etc.

The detail screen also includes a run history that shows the most recent runs based on date and time with their status.

You can get the URL from any flow run displayed in the run history.

  1. Right-click on the run timestamp.
  2. Select the Copy link address option from the menu.

This will add the flow run URL to your clipboard and you will be able to paste the URL anywhere you require it.

The details screen will only show a small selection of the last 28 days of runs. You can find more by clicking on All runs in the top right area of the run history.

⚠️ Warning: This will still only display the last 28 days of runs or the last 100 runs, whichever is lower.

Another option to get the URL is to left-click on the DateTime stamp and open the flow run details. The URL will be delayed in the address bar and you can copy the URL from there.

Get a Flow URL with the Workflow Function

This method will allow you to get the current flow run URL within the flow.

This is a dynamic way to get the flow URL and include it in any failure notifications you might build into your flow. This way you’ll be able to easily view the flow run details and see what action failed.

This can be created using the workflow function. The workflow function will output the environment ID, flow ID, and run ID which can then be used to construct the URL to the flow run details page.


A flow run URL will look like the above where x is the environment ID, y is the flow ID, and z is the run ID. This pattern will then be used to construct the URL based on the output from the workflow function.


The workflow function has now arguments, so is very simple to use.

  "id": "/workflows/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
  "name": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
  "type": "Microsoft.Logic/workflows",
  "location": "canadacentral",
  "tags": {
    "flowDisplayName": "Get Flow URL",
    "environmentName": "Default-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
    "logicAppName": "yyyyyyyy-yyyy-yyyy-yyyy-yyyyyyyyyyyy",
    "environmentFlowSuspensionReason": "Default:bbbbbbbbbb:bbbbbb:bbbbbb:bbbbbb:bbbbbbbbbbbbbb-None"
  "run": {
    "id": "/workflows/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/runs/zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
    "name": "zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz",
    "type": "Microsoft.Logic/workflows/runs"

When the flow runs, it will output the above object which includes the environment, flow, and run ID.

Now you will need to parse out the relevant items and combine them into the URL.


The above expression will get the environment ID from the workflow output.


The above expression will get the flow ID from the workflow output.


The above expression will get the run ID from the workflow output.

These can all be combined with the static parts of the flow URL pattern using the concat function to build the current flow URL.


The above expression will combine all the IDs into the flow URL. You can copy and paste this expression anywhere you want to return the flow URL within your flow.

This is a generic expression and will work for any flow.

Get All Flow URLs from the Run History CSV

The previous two methods have shown you how to get a flow URL for any single run. But what if you wanted to get the URL for all the runs available in your run history?

This is possible with the run history CSV file.

You can download the complete run history for your flow and you find the URL for each run.

  1. Go to the flow detail screen. My flowsCloud flows ➜ click on the timestamp for a specific flow run.
  2. Click on the All runs link in the flow history section.

This opens the full list of runs available in the history. At the top you should see a Get .csv file button.

  1. Click on the Get .csv file button at the top of the history list. This file may take a few minutes to generate depending on the number of flows and their complexity.
  2. Click on the Download file link. This will appear after the file is generated.

Each row in the file represents the details of a single flow run. Each column contains the details of each action in the flow.

The column labeled Run link in the CSV file contains the full URL for the flow. No construction is required!


The flow run URL is an essential piece of data to add to any error-handling notifications you create in your flows. This way you can quickly navigate to the flow and find the error.

There are a few ways that you can get the Flow URL in Power Automate, either manually for a single flow, dynamically within the flow, or for all recent flow runs.

With any of these methods, you will be able to share the run with others or reference it later on.

Do you have any other tips on how to get the flow URL in Power Automate? Let me know in the comments below!

About the Author

John MacDougall

John MacDougall

John is a Microsoft MVP and freelance consultant and trainer specializing in Excel, Power BI, Power Automate, Power Apps and SharePoint. You can find other interesting articles from John on his blog or YouTube channel.

Related Articles



Get the Latest Tech Tips

Write For Us

Are you a tech enthusiast with a talent for writing great content? Come write for us!

Follow Us

Follow us on social media to stay up to date with the latest in tech!