web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : +ohogzDoRWNrukr5W3DxIm
Power Apps - Microsoft Dataverse
Answered

How should I create a record in Microsoft Dataverse through Web form

Like (0) ShareShare
ReportReport
Posted on 12 Jan 2021 03:03:52 by 108

My company has a Nuxt.js based landing page and a web form which a visitor to the landing page can submit an inquiry.  Once the visitor submits an inquiry, we want it to be stored in Microsoft Dataverse so that our sales team can take a look at it and act upon it from Power Platform.  This is similar to Salesforce's Web-to-Lead feature. 

 

Because the landing page is built on Nuxt.js, the web form needs to be a serverless form using Azure Function app. Once a form data is posted to the endpoint of Azure Function app(HTTP trigger), the data then should be stored in Microsoft Dataverse.  Is this feasible using Microsoft Dataverse Web API?  The reason I ask is, as far as I read the documentation, it is required to generate an access token through Azure Active Directory sign-in page and the token does not seem to be permanent (https://docs.microsoft.com/ja-jp/powerapps/developer/data-platform/webapi/setup-postman-environment).  In our use case scenario, the token should not expire. 

 

It would be greatly appreciated if anyone in the community who has encountered a similar case could share a solution/idea.

 

 

Categories:
  • Verified answer
    Marcel Lathouwers Profile Picture
    236 on 18 Jan 2021 at 17:08:21
    Re: How should I create a record in Microsoft Dataverse through Web form

    Did you think about a powerplatform portal form? It is web based and data entering in the form directly lands in Dataverse, without any extra coding. You could iframe this portal page within your website. 

    If you don't put authentication on the portal page it will be available to your website wihout authentication. Of course you should hide it from web crawlers to avoid faudulace input.

    The OOB page 'contact us' creates a lead in dataverse. A good starting point.

     

    If you need to capture the data in your web application first, before sending it to dataverse, you could also create a cloud flow as webservice and sent your request to it without authentication. 

  • Fubar Profile Picture
    8,047 Super User 2025 Season 2 on 13 Jan 2021 at 04:46:06
    Re: How should I create a record in Microsoft Dataverse through Web form

    Landing Page type stuff is part of Dynamics 365 for Marketing (can embed a iframe or Script in your page) or as suggested by jlindstrom Forms Pro (now called Dynamics 365 "Customer Voice") can also push data to Dataverse/CDS but there are additional licencing costs involved If you are writing your own code when you talk to the CDS/Dataverse it will always require authentication, and you do not want to expose the credentials externally, so you would create your own web service / azure app etc that you can hide the credentials behind.

  • Joel CustomerEffective Profile Picture
    3,224 on 12 Jan 2021 at 22:03:12
    Re: How should I create a record in Microsoft Dataverse through Web form

    Have you considered using Microsoft Forms for this? You can embed a form in a website using an embed code, and then use power automate to update or create the record in dataverse.

    You can also do this with code and the web api Create an entity record using the Web API (Microsoft Dataverse) - Power Apps | Microsoft Docs

     

    If you just want a simple no authentication way to do it, microsoft forms + power automate can be a solution.

     

     

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

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 791 Most Valuable Professional

#2
MS.Ragavendar Profile Picture

MS.Ragavendar 410 Super User 2025 Season 2

#3
mmbr1606 Profile Picture

mmbr1606 275 Super User 2025 Season 2

Featured topics