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.
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.
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.
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.
WarrenBelz
791
Most Valuable Professional
MS.Ragavendar
410
Super User 2025 Season 2
mmbr1606
275
Super User 2025 Season 2