Hi,
Is there a way I can embed a marketing form into an external ASP.NET webpage? I saw the documentation here: https://docs.microsoft.com/en-us/dynamics365/marketing/embed-forms , but I am looking for something slightly different.
My use case:
What options do I have to embed the selected form in a page from my ASP .NET project, render it and be able to submit it?
I have attached a sample JSON object of a form for reference.
Thank you
[View:/cfs-file/__key/communityserver-discussions-components-files/768/sample_2D00_form.json:320:240]
Hi Adrian,
In case it helps, the javascript embed code exists on a table called msdyncrm_formpage (aka "Form Hosting" in the UI) you could potentially query the API with something like the below to pull the javascript embed code for a specific form or don't reference a specific form to pull back all form pages / embed scripts for all forms. Bear in mind, it's a 1:N so you can have multiple form pages for one form, but you could also filter based on the associated marketing website instead of a specific form.
https://xxxxxxxxx.crm11.dynamics.com/api/data/v9.2/msdyncrm_formpages?$select=msdyncrm_javascriptcode&$expand=msdyncrm_marketingformId()&$filter=(msdyncrm_marketingformId/msdyncrm_marketingformid eq bc16de9c-5f95-ec11-b400-000d3a874628)
Thanks
Alex
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 290,818 Super User 2024 Season 2
Martin Dráb 229,147 Most Valuable Professional
nmaenpaa 101,156