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 / Add advanced client-si...
Power Pages
Suggested Answer

Add advanced client-side functionality

(0) ShareShare
ReportReport
Posted on by 22
Dear Community member,
 
Hope you are well.
 
I am learning how to use JavaScript and CSS to manipulate client-side visibility and functionality of webpages to extend Power Pages websites.
 

I aim to:

  • Set up site settings and table permissions to enable portals Web API requests.

  • Add inline code to a content webpage to retrieve and transform the data by using the portals Web API.

  • Use an external JavaScript library to plot the transformed data.

 
 
The sample data for this exercise is an Account Table from Dataverse.
 
I seem to be having problems with enabling portals Wen API requests to the Dataverse table, I could not retrieve data from the table to plot the chat.
 
My outcome should resemble the first picture but the instead i got a different result(See screenshot).
 
What do you think could have gone wrong?
 
I'd appreciate your help!
Categories:

Your file is currently under scan for potential threats. Please wait while we review it for any viruses or malicious content.

I have the same question (0)
  • Michael E. Gernaey Profile Picture
    53,345 Super User 2025 Season 2 on at
     
     
    Unfortunately your last picture did not come through.
     
    However, can you share what your Enabled WebAPI's look like under Power Pages Management / Site Settings? Just so we can verify what you have.
     
    Then can you share the Role you are using and a picture of the Table Properties assigned to that role please.
     
    Lastly do the users have licenses or are you doing anonymous access?
     
     
     
  • AK-13121043-0 Profile Picture
    22 on at
    Hi Michael,
     
    Thanks for your reply to my query.
     
    I have shared what my Enabled WebAPI's look like under Power Pages Management / Site Settings.
     
    I have create a Global Read table permission row for the account table with Authenticated users and anonymous users roles.
     
    Thanks 
     
  • AK-13121043-0 Profile Picture
    22 on at
    Hi Michael,
     
    I have attached the output of what my Enabled WebAPI's look like. 
     
     
    Thanks
  • Suggested answer
    Fubar Profile Picture
    8,340 Super User 2025 Season 2 on at
    Sorry, I miss read your image - you have not shown the Site Settings for the Web API in your images (they may be on the next page etc)
     
    There should be 1 Site Setting for the Table in question
    There should be 1 Site Setting for the Table' fields that are listed in your query (1 site setting with a comma separated list of fields in the value)
     
     
    For development you can also use an asterisk for the fields site setting value for all fields (but using an asterisk should just be for development and not for production).
     
  • AK-13121043-0 Profile Picture
    22 on at
    Hi mate,
     
    I have attached the screenshots with the Site Settings for the Web API in your images.
  • AK-13121043-0 Profile Picture
    22 on at
    I am using a free Developer Plan to learn and build skills on Power Apps, Power Automate, and Microsoft Dataverse.
  • Suggested answer
    Fubar Profile Picture
    8,340 Super User 2025 Season 2 on at
    Check to see if it has something to do with the out of the box inheritance. Use the Power Pages Management app and go to the Contact record you are signing in as, and manually assign the Authenticated Web Role against the Contact and try again (after making the change you will need to Sync / Clear the portal cache for the change to take affect - or wait up to 15 minutes). 
     
    If it starts working, look at all your Web Roles and make sure only 1 has the Authenticated checkbox checked (the portal user will only inherit permission from 1 Web Role and if it finds multiple will choose 1 i.e. there can only be 1 Web Role with the Authenticated checked, and 1 Role with the Anonymous Checked)

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