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 / How to retrieve record...
Power Pages
Answered

How to retrieve records by Portal Web Api?

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a custom entity and have given permission through portal manager. Now I want to retrieve record from that custom entity using web api like following:

 

webapi.safeAjax({
        type: "GET",
        url: "/_api/custom_configurations",
        contentType: "application/json",
        success: function (res, status, xhr) {
            console.log(res);
        }
    });
 
but I'm getting 406 status code as response.
 
I need to access records from my angular app. How to do it in portal environment?
 
Categories:
I have the same question (0)
  • Verified answer
    oliver.rodrigues Profile Picture
    9,453 Most Valuable Professional on at

    Hi

    currently the Web API only supports Create/Update/Delete methods, please see more info from the documentation: Use the Web API for portals - Power Apps | Microsoft Docs

    the reason for that is because we have other methods for retrieving data:

     

    what you can also do is creating your own retrieve API using custom Web Templates + FetchXML, take a look at this post that might help you: 

    Creating a Custom Portal API to Retrieve Data | PowerObjects

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @OliverRodrigues  Thank you very much for your quick response.

     

    I have tried the web api because I need to retrieve custom entity's record from my angular 9 app that I linked into my portal app. In this scenarios how can I get records from angular app?

  • oliver.rodrigues Profile Picture
    9,453 Most Valuable Professional on at

    Hi, is your angular app inside Power Apps Portals? not sure how you are linking your app, can you give more details?

    if your app still has access to Portal objects/pages or web templates, I would recommend using the Entities liquid object mentioned earlier.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 53

#2
DP_Prabh Profile Picture

DP_Prabh 49

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 28 Most Valuable Professional

Last 30 days Overall leaderboard