cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Animoroly
Helper I
Helper I

Concatenate columns from list

Hello,

 

I have a apply to each on a sharepoint list, and for each result I get I want to define a variable where I concatenate 2 columns from the list.

Ex: I have a colums "father: jon" and other "child: jack" and I want to have "jon-jack"

 

I tried this:

concat(triggerBody()?['father'],'-', triggerBody()?['child'])
But it didn't work...
 
Someone can help?
1 ACCEPTED SOLUTION

Accepted Solutions
RobElliott
Super User
Super User

Hi @Animoroly , why not just add the two columns from the SharePoint list into a Compose action from the dynamic content with a dash between them. You can then use the output from the Compose to do something else. In my example in the image below below it updates another column with the result.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

0-Flow.png

View solution in original post

3 REPLIES 3
RobElliott
Super User
Super User

Hi @Animoroly , why not just add the two columns from the SharePoint list into a Compose action from the dynamic content with a dash between them. You can then use the output from the Compose to do something else. In my example in the image below below it updates another column with the result.

Rob
Los Gallardos
If I've answered your question or solved your problem, please mark this question as answered. This helps others who have the same question find a solution quickly via the forum search. If you liked my response, please consider giving it a thumbs up. Thanks.

0-Flow.png

View solution in original post

ScottShearer
Super User III
Super User III

@Animoroly 

Quick question so I understand your issue a little better....

Does the data stored in the column look like "Father: John" or is the column name Father and the data stored in that column "Jon"?

 

What was the output of the concat expression that you used? 

 

 

If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Scott

Hi, if I wanted to concatenate the value of the same column in different registers, is this posible?

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (3,260)