cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
rkapofu
Frequent Visitor

Display message action using variables is not displaying variable text value

The flow I am building is setting a text variable and then I use that variable in a Display message action. I've tried several options, but am not able to get it to work according to what Microsoft documentation is telling me to do. 

 

Microsoft says to do this: https://learn.microsoft.com/en-us/power-automate/desktop-flows/actions-reference/display

 

If I want a phrase in the "Message to display" field to include the variable value. Microsoft says to use %VariableName% but this is not working. Example is "This is the folder %EFGraphEXT%" The result I am getting is the text of "%VariableName%" and not the text value of the variable set, such as the variable value should be "This is the folder _EF-Graph".

 

If I only have the variable name from the {x} option on the right of the input box, it will show the value, but documentation says I should be able to add more text. 

This does not work, but should

rkapofu_1-1706663876060.png

 

This works without being able to add more text. 

rkapofu_0-1706663844440.png

 

Any ideas?

 

2 REPLIES 2
UshaJyothi20
Super User
Super User

Hi @rkapofu 

Have you enabled power fx 

Without enabling power fx you will get the value as instructed in documentation 

Once disable power fx in a new flow and create the flow 

 

Hope this helps 

Usha 

Agnius
Most Valuable Professional
Most Valuable Professional

As @UshaJyothi20 correctly pointed out, this is because your flow has Power Fx enabled. The documentation you referenced assumes you did not do that. The syntax is completely different when Power Fx is enabled. 

 

If you want to keep using Power Fx, try doing this in your message box:

=Concatenate('This is the folder ',EFGraphEXT,' where it is stored.')

 

The concatenate() function is designed to concatenate separate strings. So, you can merge the two strings and the variable value together.

 

See here for reference on the function: https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-concatenate 

 

-------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

-------------------------------------------------------------------------------------------------------------------------
If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.
Regards, Agnius Bartninkas

Helpful resources

Announcements

Hear what's next for the Power Up Program

Hear from Principal Program Manager, Dimpi Gandhi, to discover the latest enhancements to the Microsoft #PowerUpProgram, including a new accelerated video-based curriculum crafted with the expertise of Microsoft MVPs, Rory Neary and Charlie Phipps-Bennett. If you’d like to hear what’s coming next, click the link below to sign up today! https://aka.ms/PowerUp  

Check out the Copilot Studio Cookbook today!

We are excited to announce our new Copilot Cookbook Gallery in the Copilot Studio Community. We can't wait for you to share your expertise and your experience!    Join us for an amazing opportunity where you'll be one of the first to contribute to the Copilot Cookbook—your ultimate guide to mastering Microsoft Copilot. Whether you're seeking inspiration or grappling with a challenge while crafting apps, you probably already know that Copilot Cookbook is your reliable assistant, offering a wealth of tips and tricks at your fingertips--and we want you to add your expertise. What can you "cook" up?   Click this link to get started: https://aka.ms/CS_Copilot_Cookbook_Gallery   Don't miss out on this exclusive opportunity to be one of the first in the Community to share your app creation journey with Copilot. We'll be announcing a Cookbook Challenge very soon and want to make sure you one of the first "cooks" in the kitchen.   Don't miss your moment--start submitting in the Copilot Cookbook Gallery today!     Thank you,  Engagement Team

Tuesday Tip | How to Report Spam in Our Community

It's time for another TUESDAY TIPS, your weekly connection with the most insightful tips and tricks that empower both newcomers and veterans in the Power Platform Community! Every Tuesday, we bring you a curated selection of the finest advice, distilled from the resources and tools in the Community. Whether you’re a seasoned member or just getting started, Tuesday Tips are the perfect compass guiding you across the dynamic landscape of the Power Platform Community.   As our community family expands each week, we revisit our essential tools, tips, and tricks to ensure you’re well-versed in the community’s pulse. Keep an eye on the News & Announcements for your weekly Tuesday Tips—you never know what you may learn!   Today's Tip: How to Report Spam in Our Community We strive to maintain a professional and helpful community, and part of that effort involves keeping our platform free of spam. If you encounter a post that you believe is spam, please follow these steps to report it: Locate the Post: Find the post in question within the community.Kebab Menu: Click on the "Kebab" menu | 3 Dots, on the top right of the post.Report Inappropriate Content: Select "Report Inappropriate Content" from the menu.Submit Report: Fill out any necessary details on the form and submit your report.   Our community team will review the report and take appropriate action to ensure our community remains a valuable resource for everyone.   Thank you for helping us keep the community clean and useful!

Users online (2,972)