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 / Child table permission...
Power Pages
Unanswered

Child table permissions & web roles

(0) ShareShare
ReportReport
Posted on by 2
Hi all,
 
I have created a Power Page where calls are done to the web api. I have the following setup:

Contact is related to account
Account has a company
Product has a company
 
Now, i have a table permission for the 'Customer' web role for both the account and the company, and both are enabled in the api using site settings and both are returning the expected data.
Then, I wanted to include products on the portal. However, I cant get it to work as expected. I added a child permission to the company permission for the products table. I selected the table, and the relationship came popping up. When trying it in the web api, I got the following error:
 
{"error":{"code":"9004010D","message":"Common Data Service error occurred.","cdscode":"0x80040216","innererror":{"code":"0x80040216","message":"entityRelationshipRole for given navigation property not found"}}}
 
The relationship from products to company is many to one:
 
How can I best fix this (without just filtering on the companyid, since products from other companies should not be visible)
 
Thank you in advance!
Categories:
I have the same question (0)
  • RV-20030916-0 Profile Picture
    2 on at
    So, I just found out that putting it into a standard list works, but via the web api it does not. 
  • Suggested answer
    Fubar Profile Picture
    8,338 Super User 2025 Season 2 on at
    Check the fields that you have enabled for the Portals API in the Site Settings. If you have listed individual fields, you will need to add one for the relationship name - you can check if this is the issue by temporarily using an asterisk instead of the field list (but note for production it is strongly recommended you do not use the asterisk). 
     

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