cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bs-dev001
Frequent Visitor

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

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.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Mglat
Advocate III
Advocate III

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. 

View solution in original post

3 REPLIES 3
jlindstrom
Super User
Super User

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.

 

 

Fubar
Solution Specialist
Solution Specialist

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.

Mglat
Advocate III
Advocate III

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. 

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Users online (4,677)