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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Referencing variables ...
Power Automate
Answered

Referencing variables in Flow expressions

(1) ShareShare
ReportReport
Posted on by 6,949

How do you reference a variable in a Flow expression?

I have tried many variants and failed.

For example I set a VariableA and VariableB as strings and want to set VariableC as the concatenation.

The following did not work:

concat(VariableA,VariableB)

Capture.JPG

 

Maybe @v-micsh-msft can help on this one too, please?

Categories:
I have the same question (0)
  • Verified answer
    v-micsh-msft Profile Picture
    on at

    Hi @Meneghino,

     

    The expression should be as below:

    concat(variables('VariableA'),variables('VariableB'))

    To work with variables, we need first add Variables() to get the Variable output, then within the brackets we need to take use of single quotes to quote the variable name.

     

    Regards,

    Michael

  • Meneghino Profile Picture
    6,949 on at

    Hi @v-micsh-msft, brilliant, it works!

    I did think about that, but in the editor it did not change colour as it would for a recognised function, so I thought it was not.

    Please see below, recognised functions become bold and blue, whereas variables does not change.  But no error is given on update and all works.

    Capture.JPG

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard