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 Pages / Many to Many Relations...
Power Pages
Unanswered

Many to Many Relationship Permissions using Portal Web API

(0) ShareShare
ReportReport
Posted on by 4

Having troubles successfully reading table data in Portals when there are many to many relationship tables involved. When I try to GET data from the lowest level table, it seems it can't follow the permissions "up" several levels to the Contacts table:
1. Fetch XML works perfectly based on logged in user so I know I have the table permissions set correctly. In fact everything else (Forms, Lists etc.) works as it should.
2. I have Global permissions on all of the tables and the Web API GET call works as expected for me.
3. When I give Global permissions to other users for the lowest level table, WEB API works as expected.
4. Web API calls work as expected for other tables when there are no MtoM relationships. So straight from Contacts to data table relationships.
5. I added Site Settings for all of the upper tables involved and even added * for the fields after trying a few columns.

{"error":{"code":"9004010D","message":"Common Data Service error occurred.","cdscode":"0x0","innererror":{"code":"0x0","message":"Could not find a property named 'imtx_entitypermission1' on type 'Microsoft.Dynamics.CRM.imtx_trackpermission'."}}}

This is one of the errors when I simplified the call. imtx_trackpermission is the lowest MtoM table and imtx_entitypermission is the upper MtoM table. 
Hopefully I'm missing something simple. Do I have to explicitly deal with the intersect tables?

Categories:
I have the same question (0)
  • Lucas001 Profile Picture
    2,429 Super User 2025 Season 2 on at

    Hi @dharshany,

     

    what I understand is that you have already done what's necessary for a M:M relationship with a intersect table. That intersect table will than probably have some LookUps to either of the other two tables.

     

    Didi you use the fetchXML with linked entity as additional attribute to get the data from the lookUp columns?

     

    I can highly recommend the XrmToolbox and the FetchXML Builder Tool to validate you FetchXML and see if it matches what the programm gives you.

     



    --------------------------------------------------------------------------------------

    Hope that helps.

    If the post solves your problem, please mark it as solution. If it helps, consider a thumbs up.

     

  • dharshany Profile Picture
    4 on at

    Hi @Lucas001 

     

    Everything works with Fetch XML. The Fetch XML can navigate the many to may relationships. It is a problem with the Web API calls on the tables. If a user has global access to the table the WEB API call works. If a user has access to the table via the many to many relationships, the Web API call doesn't work. 

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 Pages

#1
Jerry-IN Profile Picture

Jerry-IN 71

#2
Fubar Profile Picture

Fubar 62 Super User 2025 Season 2

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard