cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
imcoDev
New Member

Combine get item results in a string

Hello,

I am using the Get items action to query a list that returns 16 items.  How can I combine the 16 items into a string that is separated by a line break?  Afterwards, I would insert it into an Email.

 

Thank you

 

Flow

list1.png

Returns 16 items

list2.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Paulie78
Super User III
Super User III

Instea of "Set variable" Use "Append to string variable" action. If you are going to put it in an email you probably want a <br> tag instead of a line break. Then you can use your new variable in your email content.

 

If it were me, I would probably append the result to an array variable and use that as the source of a HTML Table in the email, but either approach would work.

View solution in original post

2 REPLIES 2
Paulie78
Super User III
Super User III

Instea of "Set variable" Use "Append to string variable" action. If you are going to put it in an email you probably want a <br> tag instead of a line break. Then you can use your new variable in your email content.

 

If it were me, I would probably append the result to an array variable and use that as the source of a HTML Table in the email, but either approach would work.

View solution in original post

Your suggestion worked for me.  Thank you.

Helpful resources

Announcements
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

MSFTBizAppsLaunchEvent

Experience what’s next for Power Virtual Agents

See the latest Power Automate innovations, updates, and demos from the Microsoft Business Applications Launch Event.

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Users online (66,610)