We come across frequent requirement where customers ask to create a custom page and embed it in their website and write logic to get leads into Dynamics 365 CRM.
In this blog, I have explained how without coding we can achieve this requirement.
Alternative Better Approach
We can use Microsoft Forms & Microsoft Flow and without coding we can get the lead data inserted into Dynamics 365 CRM.
- You should have D365 CRM (Sales) license.
- You should have access to Microsoft Forms (refer References section for the same).
- You should have access to Microsoft Flow.
Create Microsoft Form to get Lead Information
- Login to https://portal.office.com and open Forms from Admin Center.
- Click on New Form
- Name the form and keep adding questions.
- This is my form
- Click on Share option and select Embed option.
- Copy the Iframe tag and include it in your web page.
- That’s it. Your form is ready.
Create Microsoft Flow to insert response in Dynamics 365 CRM.
- Go to Flow from admin center.
- Select CREATE FROM BLANK option. Give some name to Flow.
- Search for Microsoft Form in connector and select Microsoft Forms – When a new response is submitted
- Select your form.
- Click Next step and select Add an Action.
- Search for Microsoft Forms and select Microsoft Forms – Get Response Details
- In the configuration put below formula as per below screenshot.
Refer this blog to understand above formula.
- Click on Next step and select Add an Action.
- Search for Dynamics 365 and select Dynamics 365 – Create a new record (V2)
- Select Organization.
- Select entity as Leads. It will show the fields of Lead entity as below.
- Click on Last Name textbox and select Last Name option from the right pane as per below screenshot. Repeat same steps for other fields.
Note: Click Show advanced options to see optional fields.
- That’s it. Finally click on Create Flow.
At this stage you are ready. You can start entering data in your form and it will automatically get inserted into Dynamics 365 CRM near to real time.
- Know more about Microsoft Forms
- Frequently asked questions about Microsoft Forms