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

I have the same question (0)
  • Deenuji_Loganathan_ 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
    Deenuji_Loganathan_ 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 921

#2
Valantis Profile Picture

Valantis 801

#3
Haque Profile Picture

Haque 588

Last 30 days Overall leaderboard