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 Platform Community / Forums / Power Automate / List the users the opp...
Power Automate
Answered

List the users the opportunity (Dynamics 365 sales) is shared with

(0) ShareShare
ReportReport
Posted on by 465

Hi all

I need to have the list of users with whom the opportunity is shared (table PrincipalObjectAccess).

I think to make this with power automate, but I've not idea how to ... 

Thanks in advance for any help or Idea.

Categories:
  • Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @diepic,

     

    I would start with a list rows like below and a Filter query on the opportunity row id. After that you can explore the response and create a Fetch xml query which retrieves all necessary details. 

     

    poa_listrows.png

  • Verified answer
    Expiscornovus Profile Picture
    34,005 Most Valuable Professional on at

    Hi @diepic,

     

    Found a Dynamics thread which showed that you can also use the Users table and get related data from there. You can filter on your opportunity. Thanks to Andrew, https://community.dynamics.com/365/sales/f/dynamics-365-for-sales-forum/467207/retrieve-data-from-poa-table

     

    Below is an example fetch xml query

    <fetch>
     <entity name="systemuser" >
     <attribute name="internalemailaddress" />
     <attribute name="systemuserid" />
     <attribute name="fullname" />
     <link-entity name="principalobjectaccess" from="principalid" to="systemuserid">
     <filter>
     <condition attribute="objectid" operator="eq" value="@{variables('OpportunityId')}" />
     </filter>
     </link-entity>
     </entity>
    </fetch>

     

    listusers_sharedwith.png

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 321 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 271

#3
Henil Profile Picture

Henil 115

Last 30 days Overall leaderboard