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 / How to perform dataver...
Power Pages
Unanswered

How to perform dataverse crud operation from power portal using JavaScript /jquery ajax call ? is authentication required ?

(0) ShareShare
ReportReport
Posted on by 8

Hi Everyone,

 

I want to perform  dataverse crud operation from power portal using JavaScript /jquery ajax call i.e custom script code. 
How can i achieve that ?
If authentication required then how to implement that?

Thanks

Categories:
I have the same question (0)
  • OOlashyn Profile Picture
    3,496 Most Valuable Professional on at

    Hi @sagarjoshi,

    You can use Portal Web API to perform CUD operations. See this official docs on how to use Web Api. For read operation you can use fetchxml and web page as an api approach (see here for more details).

  • ArchitectMadhan Profile Picture
    1,584 on at

    Hi @sagarjoshi,

     

    Answer to your question regarding authentication in Power Apps Portal WebApi for CRUD operations, they have a wrapper ajax function that takes care of the token from the current logged in user's session. Also you can control the field in entities to expose it WebApi CRUD operations.

    Ex:

    (function(webapi, $){ function safeAjax(ajaxOptions) { var deferredAjax = $.Deferred(); shell.getTokenDeferred().done(function (token) { // add headers for AJAX if (!ajaxOptions.headers) {

     

    To get the complete code for CRUD operations in Power Apps Portal, please use the below link:

    https://docs.microsoft.com/en-us/powerapps/maker/portals/web-api-perform-operations#web-api-ajax-samples

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

    If you feel my reply is satisfactory, please accept it as solution. Thanks!!

     

  • souran Profile Picture
    4 on at

    Hey, Can anyone help me, I need a help for Power Portal.

    I just want to know :-I have a Html Table data and I need to push that table data into data verse table

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
Fubar Profile Picture

Fubar 70 Super User 2025 Season 2

#2
Jerry-IN Profile Picture

Jerry-IN 55

#3
sannavajjala87 Profile Picture

sannavajjala87 31

Last 30 days Overall leaderboard