How to get a link to Power Automate flow running on a specific SP item

“Can I link SharePoint item directly to a specific flow run to easily find the right Power Automate flow instance? It takes so long to find the right flow in the run history.”

If you run a flow very often, e.g. for each update of each SharePoint item, you’ll have a lots of runs. And lots of runs mean a lots of entries in the flow run history. And the more entries you have, the harder it gets to find the right one.

When you search for a flow that did run on a specific item, you might end up checking 10+ flow runs until you find the right one. It’s bit of a step back from the old SharePoint workflows where you could add the link to the flow with a single checkbox. If you want such a link to Power Automate flow, you must add it by yourself.

Build the link to the flow

Opening any existing flow run history in a browser, you’ll see that it has always the same format. There’s the environment id, flow id and flow run id, and then the rest of the url. Therefore, if you knew the 3 ids, you could build the link to the flow run manually.<environmentID>/flows/<flowId>/runs/<runId>

For example:

Power Automate has an expression workflow() that will give you all the information about the running flow. Among the information are the 3 id’s required to build the url. All you need to do is to build the whole url string by combining the fixed parts and the workflow() parts.

Power Automate item flow link

Build the whole url with the concat(…) expression, and workflow() expression with a bit of JSON navigation.

concat('', workflow()?['tags']['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])

Store the url in a column in the SharePoint item and you’ll get a direct link to the flow run. Just be careful about the potential infinite trigger loop.


It’s easy to get lost in the flow run history if your flows run very often. Power Automate by itself doesn’t offer any connection, any link between a SharePoint item and a flow run. Therefore, if you want a direct link in the item properties, you must build and update it by yourself.

And it’s not the only usage of the link as already shown in the instant error messages from your flows.

Do you struggle with the various expressions, conditions, filters, or HTTP requests available in Power Automate?

I send one email per week with a summary of the new solutions, designed to help even non IT people to automate some of their repetitive tasks.

All subscribers have also access to resources like a SharePoint Filter Query cheat sheet or Date expressions cheat sheet.

Zero spam, unsubscribe anytime.

Add a Comment

Your email address will not be published. Required fields are marked *