cancel
Showing results for 
Search instead for 
Did you mean: 

Add Flow Name (display name) to the workflow() context

workflow().name provides the Flow guid but there is nothing in the workflow() context that has the Flow Name at runtime. I might suggest something like workflow().displayname.

 

An example of how it could be useful might be a Flow designed to send an Email having the Flow Name as the subject of the Email.

Status: Completed

This feature was recently completed, you can read more here: https://flow.microsoft.com/blog/return-data-to-powerapps/

Comments
asdfaf4
Kudo Collector

Nintex offers this option, which is a HUGE time saver to troubleshoot a problem like when a workflow email is forwarded to the helpdesk but then they don't know where it's coming from.  Have the full display name of the workflow, the author or a link to the flow, it's a massive time saver.

 

I would ask to add the flow version as an attribute in case the flow has been upgraded or updated....

benfishin
Microsoft

This solves the issue I was having

workflow()['tags']['flowDisplayName']

Stephen
Power Automate
Status changed to: Completed

This feature was recently completed, you can read more here: https://flow.microsoft.com/blog/return-data-to-powerapps/

testasdfasfsafa
Advocate III

Is there a way to generate a link directly to the workflow run itself vs the flow name using those tags?

DeeTronSEAM
Advocate V

@testasdfasfsafa  ,

 

This is probably too late for you, but....

 

Here is string that builds a link to the run instance. I use it in every flow that sends an email so if users have problems, I can have them forward me the email and I can click on that link to jump directly into Power Automate and examine the problem run. To use this, copy&paste into either a Compose action's input parameter or an Initialize Variable or Set Variable action:

 

<a href="https://flow.microsoft.com/manage/environments/@{workflow()['tags']['environmentName']}/flows/@{workflow()['name']}/runs/@{workflow()['run']['name']}">Open the flow results panel for this run, instance <i>@{workflow()['run']['name']}</i> flow (run timestamp: @{utcNow()}</a>

 

For bonus points, here is the one (with mods from yours truly) that Stephen provides in the blog post he references above:

 

<a href="https://flow.microsoft.com/manage/environments/@{workflow()['tags']['environmentName']}/flows/@{workflow()['name']}/details">Open the flow control panel for the <i>@{workflow()['tags']['flowDisplayName']}</i> flow</a>

 

Credit goes to Pieter at Sharepains.com for the run instance one: https://sharepains.com/2019/05/06/one-liner-expressions-power-automate/

testasdfasfsafa
Advocate III
Thank you @DeeTronSEAM, very useful.