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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Unanswered

Group by Email

(1) ShareShare
ReportReport
Posted on by 2
Hi together,

I have a Sharepoint List with two person columns: 1) User 2) Responsible.
In the list are multiple records with lots of users. Each user has a responsible person. The responsible person can have multiple users. So as an example it could look like this:
 
Users Responsible
Mark Thomas
Jeff Joe
Donald Thomas
Jose Thomas
Jenifer Joe
 
So in this example Mark, Donald and Jose are under the responsibility of Thomas.
 
For my Flow I want to send a single email to Thomas and Joe with a list of the users they are responsible of.
 
I tried many methods, especially the ones that are out there in the internet, but none of them worked. I would really appreciate any help!
Categories:
I have the same question (0)
  • Chriddle Profile Picture
    8,685 Super User 2026 Season 1 on at
    Using XML and XPath:
    Create an array of unique "Responsible" (In Select's "From")
    Select all "User" with this "Responsible" (In Select's "Map Users")
     

    Select

    From:

     xpath(
    	xml(json(concat('{"Root":{"Item":', outputs('Compose'),'}}'))),
    	'//Responsible[not(preceding::Responsible=.)]/text()'
    )

    Map Responsible:

    item()

    Map Users:

     xpath(
    	xml(json(concat('{"Root":{"Item":', outputs('Compose'),'}}'))),
    	concat('//Item[Responsible="' , item(),'"]/User/text()')
    )
     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 873

#2
Valantis Profile Picture

Valantis 813

#3
Haque Profile Picture

Haque 526

Last 30 days Overall leaderboard