Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Pages - Design & Build
Suggested answer

How to Submit Form Data to Dataverse Table Using Web API in Power Pages?

(1) ShareShare
ReportReport
Posted on by 8

Hello Community,

I am building a Power Pages portal and need to submit data from an HTML form into a Dataverse table (mm_Patients). I am a beginner and have no prior experience with Web APIs. I need help understanding how I can send data from a form to Dataverse via its Web API.

Here are the steps I have already taken:

  1. Created a form where users can input their details like name, email, phone number, etc.

  2. I want to submit this data to the Dataverse table (mm_Patients) when the user clicks the Submit button.

  3. I have heard that I need to use the Dataverse Web API to send the data but I'm unsure how to proceed with authentication and data submission.

What I need help with:

  • How can I authenticate and get an access token to communicate with Dataverse using the Web API?

  • How can I make a POST request to the Dataverse API to add the form data to the mm_Patients table?

  • Are there any examples or documentation for submitting form data to Dataverse using JavaScript and Web API?

Any help or guidance would be greatly appreciated. Thank you in advance!

Categories:
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,242 Most Valuable Professional on at
    How to Submit Form Data to Dataverse Table Using Web API in Power Pages?
    Hi @Michael E. Gernaey, the author specifically mentions the technology stack, hence our response was focused on that
     
     
    @Fraz_Ahmed Let us know if you need any further assistance or have other specific questions on how to build your forms
  • Michael E. Gernaey Profile Picture
    38,255 Super User 2025 Season 1 on at
    How to Submit Form Data to Dataverse Table Using Web API in Power Pages?
     
    I am not convinced the author is talking about a power page, which is why i asked if its an embedded HTML page, which in fact would need that.
  • Suggested answer
    Fubar Profile Picture
    7,762 Super User 2025 Season 1 on at
    How to Submit Form Data to Dataverse Table Using Web API in Power Pages?
    As per Oliver's post you generally do not use the Portals Web API for general form submission (it generally used for more advanced or highly customised scenarios).
     
    For a simple form submission
    • Create a Dataverse form with the respective fields
    • In Power Pages create a Basic Form, that uses the Dataverse form, and set the Basic Form to be Insert
    • Add the Basic Form to a Page in your Power Pages Site.
    • Create appropriate Table Permissions and attach them to one or more Web Roles
     
     
     
  • Suggested answer
    oliver.rodrigues Profile Picture
    9,242 Most Valuable Professional on at
    How to Submit Form Data to Dataverse Table Using Web API in Power Pages?
    Hi, no you don't need and shouldn't use Dateverse API
     
    The beauty of Power Pages is to interact with Dataverse data without the need of code. The platform supports forms (basic forms / multistep forms) that allows you to view / submit data without using code.
     
    In addition to that, there is a Portals API that you can use, but that would be for more edge scenarios.
     
    Have you looked into the Microsoft Learns? or community content? there are plenty of videos on Youtube and the official Documentation is also very good
     
  • Michael E. Gernaey Profile Picture
    38,255 Super User 2025 Season 1 on at
    How to Submit Form Data to Dataverse Table Using Web API in Power Pages?
     
    Are these folks authenticated and have Licenses for Dataverse?
    If not then you cannot it would be against policy. If so, silly question but when you say form do you mean a Dataverse Form, or did you embed some HTML form that is from another site?
     

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,513 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 65,681 Most Valuable Professional

Leaderboard

Featured topics