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:
-
Created a form where users can input their details like name, email, phone number, etc.
-
I want to submit this data to the Dataverse table (mm_Patients) when the user clicks the Submit button.
-
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!