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,...
Suggested Answer

Integrate with landing pages published on an external website (PHP site)

(0) ShareShare
ReportReport
Posted on by 5

Hi

I have to embed a Dynamics 365 landing page on an external website developed with Php,

I am planning to generate code for a landing page following this link https://docs.microsoft.com/en-us/archive/blogs/lystavlen/how-to-embed-dynamics-365-for-marketing-forms-on-you-own-website from dynamics 365.

1. Can I use the generated code into an external site created with Php technology?

2, When the user submits the landing page data from the Php site, is it possible to save the data back to dynamics 365.

3. the landing page will be used by external public users (e.g: farmers). if I want to generate prefill form I won't be able to register the domain as described in this link https://docs.microsoft.com/en-ca/dynamics365/marketing/mkt-settings-authenticate-domains because domain for external users' email addresses can be different. in this situation, how i can use a prefill landing page on an external website. 

thank you, 

RanS

I have the same question (0)
  • Suggested answer
    cloflyMao Profile Picture
    25,210 on at
    RE: Integrate with landing pages published on an external website (PHP site)

    Hi Rans,

    1. Yes, the generated code is just an embedded JavaScript code, and due to HTML tag is supported in PHP, thus we can use the script in PHP page.

    2. Yes, after user submitted data, a XMLHttpRequest will be sent to Dynamics 365 back-end server to create new record or update existing match record.

    3. Could you share me more details about your current situation? 

    As per my understanding, we just need to make sure the domain is owned by us regardless of external users' email addresses.

    e.g: I have a website whose domain is www.clofly.com, what I should do is to authenticate/configure it in both Dynamics 365 setting and domain provider DNS setting page.

    Then any external users with different email addresses(outlook or gmail) can submit their data then get pre-filled form if "remember me" option was checked. 

    Regards,

    Clofly

  • SivaR Profile Picture
    69 on at
    RE: Integrate with landing pages published on an external website (PHP site)

    Thank you so much. I will try it and let you know if i encounter any problem

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…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Customer experience | Sales, Customer Insights, CRM

#1
Tom_Gioielli Profile Picture

Tom_Gioielli 179 Super User 2025 Season 2

#2
#ManoVerse Profile Picture

#ManoVerse 110

#3
Gerardo Rentería García Profile Picture

Gerardo Rentería Ga... 61 Most Valuable Professional

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans