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 :
Customer experience | Sales, Customer Insights,...
Answered

Embed marketing form in external page

(0) ShareShare
ReportReport
Posted on by 15

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:

  1. query the list of forms by making a request to /api/data/v9.2/msdyncrm_marketingforms 
  2. select the form I want to embed 

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]

I have the same question (0)
  • Verified answer
    AlexJay Profile Picture
    422 on at
    RE: Embed marketing form in external page

    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

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Mansi Soni – Community Spotlight

We are honored to recognize Mansi Soni as our August 2025 Community…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Hamza H Profile Picture

Hamza H 141

#2
Daniyal Khaleel Profile Picture

Daniyal Khaleel 132

#3
DAnny3211 Profile Picture

DAnny3211 130

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans