cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
manjotsingh057 Helper IV
Helper IV

Microsoft flow workflow Functions - @workflow().name

I am trying to retrieve @workflow().name in MS flow , it says expression not valid. 

What should be done to make it work ?

 

What  i can do as of now is parse @workflow() as json variable and then use the output.  

2 REPLIES 2
manjotsingh057 Helper IV
Helper IV

Re: Microsoft flow workflow Functions - @workflow().name

we can use it as workflow().name

 

We can use below variable to make a link to flow instance in case of errors.

 

concat('https://us.flow.microsoft.com/manage/environments/',workflow().tags.environmentName,'/flows/',workfl...)

 

 

Community Support
Community Support

Re: Microsoft flow workflow Functions - @workflow().name

Hi @manjotsingh057,

 

Do you want to get the name of current workflow run using the expression (workflow().name)?

Further, do you have solved your problem?

 

I have made a test on my side and please take a try with the following workaround:

 10.JPGWithin Compose action, Inputs field set to following formula:

workflow().name

The flow works successfully as below:
11.JPG

 

More details about using expression in flow actions, please check the following article:

Using expression in flow actions

 

Or you could consider take a try with the following workaround:12.JPG

Within Compose action, Inputs field set to following formula:

"@workflow().name"

 

Best regards,

Kris

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Users online (5,978)