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 Pages / Web API Portal syntax ...
Power Pages
Unanswered

Web API Portal syntax error because table permission settings

(0) ShareShare
ReportReport
Posted on by

Hi All,

So im developing a hierarchy settings for some table with this configuration

Alkahfi_0-1702878096586.png


so dealer can only access their record, distributor can see the dealer below it but not from the other distributor, and admin can see all of the records, keep in mind dealer is like team or business unit.
the settings on table will be like this

Alkahfi_1-1702878402511.png


if the dealer lookup is null, then the user is distributor, lookup will be used for parent access system

This what looks like in Portal Table Permission

Alkahfi_3-1702878551876.png

Alkahfi_4-1702878628655.png


The filter works, now list will be filtered by own team, but the problem is, i need to do some web api to get some data and have this error

Alkahfi_5-1702880754490.png


anyone know why this is happen or maybe the solution from this one?


Thanks!

Categories:
I have the same question (0)
  • Saud Ali Profile Picture
    812 Super User 2024 Season 1 on at

    Hi @Alkahfi , 

     

    It seems your code has some errors. Can you share your code as well, how you are calling Api. So, you can have better answers?

     

    Thanks,

    Saud

     

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.
     

  • Alkahfi Profile Picture
    on at

    Hi @saudali_25 ,

    for the framework im using web api portal from this https://learn.microsoft.com/power-pages/configure/web-api-overview

    for the code to calling it, will look like this.

    Alkahfi_0-1702967308492.png

     

  • Lucas001 Profile Picture
    2,575 Super User 2026 Season 1 on at

    Hi @Alkahfi,

     

    I am not sure where you got the code snippet but I use it differently.

    This tutorial is helping a lot: https://www.youtube.com/watch?v=5PwLZd_HE30

     

    You have to enable the webapi for the table, create the permission and use the CRUD operators to perform actions on the table itself.

     

    If you data does not need to be updated in realtime or you just want to display some, consider FetchXML as it is executed on the server.

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

    Hope that helps.

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

     

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
sannavajjala87 Profile Picture

sannavajjala87 42 Super User 2026 Season 1

#2
Valantis Profile Picture

Valantis 35

#3
Fubar Profile Picture

Fubar 23 Super User 2026 Season 1

Last 30 days Overall leaderboard