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 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,498 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
11manish Profile Picture

11manish 36

#2
Valantis Profile Picture

Valantis 30

#3
omkarsupreme Profile Picture

omkarsupreme 23

Last 30 days Overall leaderboard