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

Group SP List into Body of Email

Hello I need to group unique data stored in SharePoint List - tableA - by the activity then add each user assigned to that activity into a format for an email - bodyA.

 

tableA

ActivityUser
EmailsLiz
EmailsJamie
PhonesRyan
On-siteLuke

 

bodyA

 

Emails

Liz

Jame

 

Phones

Ryan

 

On-site

Luke

1 ACCEPTED SOLUTION

Accepted Solutions
v-xiaochen-msft
Community Support
Community Support

Hi @ashtonl98 ,

 

I did a test for you.

vxiaochenmsft_0-1639968515471.png

vxiaochenmsft_1-1639968531173.png

union(body('Select'),body('Select'))
items('Apply_to_each')['Activity']
item().Activity
item().User
 
vxiaochenmsft_2-1639968635755.png
vxiaochenmsft_3-1639968649581.png
vxiaochenmsft_4-1639968668234.png

 

 

 
Best Regards,
Wearsky

 

 

View solution in original post

1 REPLY 1
v-xiaochen-msft
Community Support
Community Support

Hi @ashtonl98 ,

 

I did a test for you.

vxiaochenmsft_0-1639968515471.png

vxiaochenmsft_1-1639968531173.png

union(body('Select'),body('Select'))
items('Apply_to_each')['Activity']
item().Activity
item().User
 
vxiaochenmsft_2-1639968635755.png
vxiaochenmsft_3-1639968649581.png
vxiaochenmsft_4-1639968668234.png

 

 

 
Best Regards,
Wearsky

 

 

Helpful resources

Announcements
Power Automate News & Announcements

Power Automate News & Announcements

Keep up to date with current events and community announcements in the Power Automate community.

Community Calls Conversations

Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Automate Community Blog

Power Automate Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Users online (2,748)