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

Concatenate data from multiple rows in a list

Hi,

 

Looking for some advice please.

 

I have a Sharepoint List, that has 3 columns, Name, Email, Age

There are multiple rows of data, all data is set as Text, Single Line.

I am wanting to get the email addresses from the list (using Get Items), and then concatenate them all together with a ;

eg. user.one@email.com;user.two@email.com 

 

How could I do this please?

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions

@ChrisBrownNSFT 

All you need to do is reference the variable - it will contain each email address followed by a semicolon.

image.png

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

Scott

View solution in original post

3 REPLIES 3
ScottShearer
Super User
Super User

@ChrisBrownNSFT 

  1. Immediately after your trigger, add a variable of type string
  2. Loop through the rows returned
    1. Inside the loop add an "append to string variable" action
    2. In the append action, reference the email column and add a semicolon

image.png

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

Scott

That's great Scott, i've got mine to that point now. How can I join the result of them up?

So I could end up with a final string of user.one@email.com;user.two@email.com and so on?

Thanks for your help.

@ChrisBrownNSFT 

All you need to do is reference the variable - it will contain each email address followed by a semicolon.

image.png

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

Scott

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Power Automate Designer Feedback_carousel.jpg

Help make Flow Design easier

Are you new to designing flows? What is your biggest struggle with Power Automate Designer? Help us make it more user friendly!

Top Solution Authors
Users online (2,511)