web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / How can I group one fi...
Power Automate
Unanswered

How can I group one filed and then union all associated fields from SharePoint (driving me crazy!)

(0) ShareShare
ReportReport
Posted on by

So here goes:

 

Imagine a SharePoint List setup like this (there are other columns but I don't need them):

Person 1 | Person 1 Email | Project 1

Person 1 | Person 1 Email | Project 1

Person 1 | Person 1 Email | Project 1

Person 2 | Person 2 Email | Project 2

Person 2 | Person 2 Email | Project 2

Person 2 | Person 2 Email | Project 3

Person 3 | Person 3 Email | Project 4

Person 3 | Person 3 Email | Project 4

Person 3 | Person 3 Email | Project 4

Person 3 | Person 3 Email | Project 5

Person 3 | Person 3 Email | Project 5

Person 3 | Person 3 Email | Project 6

Person 3 | Person 3 Email | Project 7

 

I would like to send an email to each Person with a list of unique project names:

 

Email 1

To: Person 1 Email

Dear Person 1 you have pending items for review on:

Project 1

 

Email 2

To: Person 2 Email

Dear Person 2 you have pending items for review on:

Project 2

Project 3

 

Email 3

To: Person 3 Email

Dear Person 3 you have pending items for review on:

Project 4

Project 5

Project 6

Project 7

 

Thanks in advance to anyone who can offer help figuring this out.

Categories:
I have the same question (0)
  • Verified answer
    v-litu-msft Profile Picture
    on at

    Hi @VDOHS,

     

    You can use the Select action to get the key column you want, then use the union() expression to get these unique items:

    Annotation 2019-11-14 144802.png

     

    Then repeat the previous step to initialize an array variable just only have emails:Annotation 2019-11-14 151304.png

    After all, you can split these projects according to their email address.

    Please have a try, if you have any problem, please contact us.

     

    Best Regards,
    Community Support Team _ Lin Tu
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 523 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 406 Moderator

#3
abm abm Profile Picture

abm abm 245 Most Valuable Professional

Last 30 days Overall leaderboard