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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Customer experience | Sales, Customer Insights,...
Unanswered

Need Web API endpoint to source entity referenced by privilegeobjecttypecodes

(0) ShareShare
ReportReport
Posted on by 2
The following FetchXML works fine.
 
I need some help to get the Web API endpoint to get the records for /privilegeobjecttypecodes/ so that I can import it as a table into Power BI.
 
Privileges for example, works with https://<domain>/api/data/v9.2/privileges. 
 

The following FetchXML works fine. I need some help to get the Web API endpoint to get the records for /privile/geobjecttypecodes/ so that I can import it as a table into Power BI.
Privileges for example, works with https://<domain>/api/data/v9.2/privileges. 
 
<fetch returntotalrecordcount=/true/ >    <entity name=/roleprivileges/ >        <attribute name=/privilegedepthmask/ />        <link-entity name=/role/ from=/roleid/ to=/roleid/ alias=/role/ >            <attribute name=/roleid/ />            <attribute name=/name/ />            <filter>                <condition attribute=/name/ operator=/eq/ value=/1-Custom Role Name/ />            </filter>        </link-entity>        <link-entity name=/privilegeobjecttypecodes/ from=/privilegeid/ to=/privilegeid/ alias=/objecttype/ >            <attribute name=/objecttypecode/ />            <attribute name=/privilegeid/ />        </link-entity>        <link-entity name=/privilege/ from=/privilegeid/ to=/privilegeid/ alias=/privilege/ >            <attribute name=/accessright/ alias=/AccessRight/ />            <attribute name=/name/ />            <attribute name=/canbeentityreference/ />        </link-entity>    </entity></fetch>
 
Ben
I have the same question (0)
  • Leah Ju Profile Picture
    Microsoft Employee on at
    Hi Parter,
    Maybe you can try to use this tool--Dataverse REST Builder.
    https://github.com/GuidoPreite/DRB?tab=readme-ov-file
    Dataverse REST Builder (DRB) is an application to create and execute requests against the Dataverse Web API endpoint.
  • Community member Profile Picture
    2 on at
    Thanks Leah. It's not a question of building the Web API or the tool. I need some help with the specific Entity / Collection pertaining to the relationship in the FetchXML version of the Query. Thanks again
     
    Ben

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 Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
ManoVerse Profile Picture

ManoVerse 192 Super User 2026 Season 1

#2
11manish Profile Picture

11manish 129

#3
CU11031447-0 Profile Picture

CU11031447-0 100

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans