Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Security
Suggested answer

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:
  • Suggested answer
    Fubar Profile Picture
    7,821 Super User 2025 Season 1 on at
    Child table permissions & web roles
    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). 
     
  • RV-20030916-0 Profile Picture
    2 on at
    Child table permissions & web roles
    So, I just found out that putting it into a standard list works, but via the web api it does not. 

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,524 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,898 Most Valuable Professional

Leaderboard

Featured topics