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 / Using variables in Pow...
Power Automate
Answered

Using variables in Power Automate Desktop

(0) ShareShare
ReportReport
Posted on by 5
I am trying to use a flow variable in my Power Automate script. Power Automate treats the flow variable reference as a literal and does not resolve the variable's value.
Intrinsic_0-1707923499891.png
The value of NewVar2 is: Hello %sample%

Intrinsic_1-1707923547980.png

 

I am trying to achieve in NewVar2:

        Hello hello this is a test of a string

 

I have tried: Hello + %sample%, Hello '%sample%', Hello "%sample%", Hello "'%sample%'" with similar results

  • CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Intrinsic 

    Hope you are doing well!!

     

    Please refer the below MS article for the same:
    Variable manipulation and the % notation - Power Automate | Microsoft Learn

    Also Please follow the below code:

    Deenuji_0-1707925848267.pngDeenuji_1-1707925877025.png

     

  • Intrinsic Profile Picture
    5 on at

    I have followed the guidance set forth in the article, using the '%' notation in a variable reference does not resolve to the variable's value

     

  • Verified answer
    CU16071609-1 Profile Picture
    6,255 Moderator on at

    @Intrinsic 

    I understand. It seems that Power Fx was enabled when you created your flows. To resolve this issue, please disable it and recreate your flow from scratch and follow the same syntax as mentioned in the previous post or MS document it will work now.

    Deenuji_0-1707926621816.png

     

     

    Thanks,

    Deenu

     

    -----------------------------------------------------------------------------------------------------------------------------

    If this helps & solves your problem, please remember to give a "Thumbs up" and "Accept my solution" as it will help others in the future.

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

Leaderboard > Power Automate

#1
Mohsin Ali Profile Picture

Mohsin Ali 289

#2
11manish Profile Picture

11manish 282 Super User 2026 Season 2

#3
Henil Profile Picture

Henil 119

Last 30 days Overall leaderboard