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 / Concatenating strings ...
Power Automate
Unanswered

Concatenating strings from records

(0) ShareShare
ReportReport
Posted on by 53

Hi,

 

I have a flow which imports contact information from Dynamics 365 to Salesforce. Street addresses in Dynamics 365 consists of 3 lines, but in Salesforce, there is only 1. So I would need to concatenate the 3 lines from CRM before inserting the contact to Salesforce.

 

I tried to use the "concat" expression, but either I get an expression error or it doesn't concatenate properly. I tried the following:

concat(items('Apply_to_each_record_from_CRM')?['address1_line1'],' ', items('Apply_to_each_record_from_CRM')?['address1_line2'],' ', items('Apply_to_each_record_from_CRM')?['address1_line3'] )


concat(triggerBody()?['address1_line1'],' ', triggerBody()?['address1_line2'],' ', triggerBody()?['address1_line3'] )


concat(parameters('address1_line1'),' ', parameters('address1_line2'),' ', parameters('address1_line3') )


concat(item()?['address1_line1'],' ', item()?['address1_line2'],' ', item()?['address1_line3'] )


concat(body('Apply_to_each_record_from_CRM')?['address1_line1'],' ', body('Apply_to_each_record_from_CRM')?['address1_line2'],' ', body('Apply_to_each_record_from_CRM')?['address1_line3'] )

 

Below is the screenshot of my Create record (to Salesforce). I wanted to use the expression in the Mailing Street field.

 

Concatente_issue.JPG

 

I was wondering what is the correct format of the expression should I use?

 

Sincerely,

 

Jason

Categories:
I have the same question (0)
  • Paulie78 Profile Picture
    8,424 Moderator on at

    I'm not sure of the expression you need, but you do have some syntax errors in your expressions above. To make it easier for yourself, why not simply place a compose action before "Create Record" action which contains the dynamic content from D365 without using any expressions, just put them all in to a compose, then you can use the output of that compose into your create record action.

  • Jason Yeung Profile Picture
    53 on at

    Hi @Paulie78 ,

     

    Thanks for the information. Yeah, those lines I used had problems as I couldn't get the concat expression to function. I tried what you suggested, but it still had the concat expression.

     

    I tried something different and it turns out I didn't need the concat expression at all. I found I could put more than 1 dynamic element in the field. If I put the 3 mailing street elements from the CRM in the mailing street element of Salesforce (and separate them by spaces), I was able to save all 3 lines in Salesforce.

     

    Sincerely,

     

    Jason

     

  • Paulie78 Profile Picture
    8,424 Moderator on at

    That’s what I meant - to save you the hassle of writing the expressions. Just put them in. The extra compose was just for troubleshooting and visibility. 

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 419

#2
Vish WR Profile Picture

Vish WR 314

#3
David_MA Profile Picture

David_MA 260 Super User 2026 Season 1

Last 30 days Overall leaderboard