In one of my recent posts I mentioned the workflow function in Microsoft Flow. In this post I looked at which elements are needed to create the Url used by flow run.
With my two Compose actions I’m first collecting the flow details with the workflow function:
concat(‘https://unitedkingdom.flow.microsoft.com/manage/environments/’, outputs(‘Compose’)[‘tags’][‘environmentName’], ‘/flows/’, outputs(‘Compose’)[‘name’], ‘/runs/’, outputs(‘Compose’)[‘run’][‘name’])
With this all in place I can now get the workflow history run of my flow. This I can now email to myself when something goes wrong making it very easy to identify the failed flows.
if you prefer not to use the Compose actions you can of course also simply include the following in an email set out to a user:
concat('https://unitedkingdom.flow.microsoft.com/manage/environments/', workflow()?['tags']['environmentName'], '/flows/', workflow()?['name'], '/runs/', workflow()?['run']['name'])