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 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.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

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.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (3,112)