web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Unable to attach varia...
Power Automate
Answered

Unable to attach variable within String value

(1) ShareShare
ReportReport
Posted on by 23

I am capturing the dynamic value from a webpage (Ex: Customer name) and  I want that variable to be attached in between a string value.

When I tried placing a variable inside a string value, it just add that variable name only to the string.

Help me with how to attach the variable within a predefined value in Power Automate Desktop.

In the attached screenshot, I have a variable called CustomerNumber with value set as "1372298" and I want to add this value in between a text like "Customer with Account Number <CustomerNumber> is valid in the system" and It will be populated in the text filed of one of the desktop application.

But when I use {x} and attached CustomerNumber within a text value, it just print as CustomerNumber only, it's not providing the value within the string.

Cust_Account_Error_PAD.png
  • cwischnewski Profile Picture
    162 on at

    It's all in the percent notation for variables.  Check out this page for details:  https://learn.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation

     

    But for your example %CustomerAccounts% = '="Customer with Account Number =%CustomerNumber% is valid in the system"' would then result in the message you are looking for.

  • Dileep_Dili Profile Picture
    23 on at

    Thanks for your quick response. I gone through the link and tried passing the variable using percentage sign and copying the exact syntax as defined above but ending up in same results.

    My variable name is not replaced with actual value.

    please find the attached screenshot.

    Cust_Account_Error_PAD.png
  • cmoreno8 Profile Picture
    8 on at

    Hi,

    I have the same problem. 

    It should be easy and fast to resolve, but I can find the correct notation to embed a var in a text.

    How can we do it?

    Thanks in advance.

  • Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Dileep_Dili 

    Have you enabled PowerFx within your desktop flow ?

     

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Dileep_Dili Profile Picture
    23 on at

    Dear @Nived_Nambiar 

    Yes, I have enabled the Power Fx in the flow.

    Thank you.

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Hi @Dileep_Dili 

     

    This approach would help !

    Nived_Nambiar_0-1705855216058.png

     

    Nived_Nambiar_1-1705855236127.png

     

     

    Refer this: 

    https://learn.microsoft.com/en-us/power-platform/power-fx/data-types#text-hyperlink-image-and-media

     

    from string interpolation.

     

     

    Hope it helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Dileep_Dili Profile Picture
    23 on at

    Dear @Nived_Nambiar 

    Thank you so much, This approached worked fine.

    may I know why exactly I was not able to attach variables with percentage sign.

    Thank you.

  • Verified answer
    Nived_Nambiar Profile Picture
    18,138 Super User 2026 Season 1 on at

    Actually in PowerFx , things are quite different it uses excel based formulas there. So normally when using variables in Power AUtomate, we use %% to notify a variable, but here without %% we can call a variable

     

    see below : when using %%

    Nived_Nambiar_0-1705946962766.png

     

    when using without %%

    Nived_Nambiar_1-1705947011100.png

     

    Nived_Nambiar_2-1705947025603.png

     

     

    https://learn.microsoft.com/en-us/power-automate/desktop-flows/power-fx

     

     

    If you need to normal %% sign for variables, you do not need to enable PowerFx in your flow 🙂

     

    Hope it helps !

    Thanks & Regards,

    Nived N 🚀

    LinkedIn: Nived N's LinkedIn
    YouTube: Nived N's YouTube Channel

    🔍 Found my answer helpful? Please consider marking it as the solution!
    Your appreciation keeps me motivated. Thank you! 🙌

  • Dileep_Dili Profile Picture
    23 on at

    Dear @Nived_Nambiar

    Thank you so much for solving the issue and sharing such a useful information.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 259 Super User 2026 Season 2

#2
11manish Profile Picture

11manish 227 Super User 2026 Season 2

#3
Valantis Profile Picture

Valantis 134 Super User 2026 Season 2

Last 30 days Overall leaderboard