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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Users online (2,185)