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 / How to concatenate on ...
Power Automate
Answered

How to concatenate on to a single line in Power Automate Desktop

(1) ShareShare
ReportReport
Posted on by 96

Hi all,

 

I think I'm missing something simple, but I was wondering what the best way to concatenate two strings in to single line string is in Power Automate Desktop? I see that there's a step to append two strings together, but that adds the second string in to a new line instead of a single one. So as an example, if I wanted to concat "dollar" and "bill" to "dollar bill", using the append function I get
"dollar

bill"

 

The way I found around this is to split the new variable in to a list delimited by new line and then join the list delimited by a space, but that seems like a roundabout way to what I would think is a simple concat.
Thanks!

Categories:
I have the same question (0)
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi! Are dollar and bill stored in separate text variables? I’m new to PAD, but I was playing around. I have 2 text variables—%NewVar% and %NewVar2%—where the first stores dollar and the second stores bill. I used a Display Message action to concatenate them with a space by typing %NewVar% %NewVar2% just as shown, and it displayed dollar bill. Will that work?

  • Verified answer
    CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    Hey Mate @IAQG ,

     

    You can use + operator to concat -

     

    Have a look at -  https://docs.microsoft.com/en-us/power-automate/desktop-flows/variable-manipulation#basic-arithmetic

     

    CFernandes_0-1619549911668.png

     

    Note in set variable % symbols are the start and end- %VarDollar + VarThis% 

     

    Option 2 - As suggested by @Anonymous 

     

    CFernandes_1-1619549962795.png

     

    If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

     

     

  • burque505 Profile Picture
    398 on at

    And if you want to do it by setting variables, you can try this:

    flow.PNG

    Setting var 1 (has a space you can't see at the end):

    1stString.PNG

    Setting var 2:

    2ndString.PNG

    Setting var 3 to concatenate vars 1 and 2:

    3rdString.PNG

    And the result ( you can see the double percent signs from var 2 have been converted to single percent signs):

    message.PNG

  • IAQG Profile Picture
    96 on at

    Ah, there it is. Thanks, all, I knew there had to be something easier than what I was doing.

  • CFernandes Profile Picture
    8,482 Most Valuable Professional on at

    @IAQG I am glad our inputs helped!! 

  • minhhoangn Profile Picture
    40 on at

    Now 06/02/2024 (dd/mm/yyyy) Version Power automate desktop 2.40.00207.24023minhhoangn_0-1707197963820.png
    Anotation % not working. syntax when use variable: =variable name . I can not concat string in power automate desktop right now.

    minhhoangn_1-1707198084879.png

    color is a variable, not use with old syntax. New syntax: =color . It's working but can not concat string or multi variable.
    Can you help me fix it?
    Thanks in advance.

  • NRoger Profile Picture
    2 on at

    You must have enabled "Use Power FX" when you created your flow. That's why it's not working for you.

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 March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 592

#2
Valantis Profile Picture

Valantis 340

#3
11manish Profile Picture

11manish 284

Last 30 days Overall leaderboard