Become a Dynamics 365 expert with Syvantis Learn
Provide additional details about the offer you're running.
This store requires javascript to be enabled for some features to work correctly.
Provide additional details about the offer you're running.
Create a lead record from an external form and send a well-designed email notification with Power Automate
Power Automate • Power Platform
Learn how to use Power Automate to turn an external form submission into a new lead in Dynamics 365 CRM and automatically notify the appropriate salesperson. This workflow connects form responses, Dynamics 365, and email while showing how HTML can make internal notifications more useful and professional.
Power Automate can connect applications inside and outside the Microsoft ecosystem to create a seamless workflow. In this example, a form used for marketing outreach collects information from a potential lead.
Once someone submits the form, Power Automate creates a lead record in Dynamics 365 CRM and sends an email notification so the appropriate salesperson can begin following up. The workflow runs automatically each time a new form response is submitted, reducing manual data entry and helping ensure new leads are addressed promptly.
What you need
This example uses Dynamics 365 and Power Automate. Dynamics 365 licensing includes access to the standard Power Automate and Dataverse connectors used in this workflow.
Start with your form
The example uses Microsoft Forms, but Power Automate can also connect with forms and surveys from other applications. Create an automated cloud flow in Power Automate and use When a new response is submitted as the trigger. Then add Get response details so the flow can access the information submitted through the form.
Create the lead in Dynamics 365
Next, use the Dataverse Add a new row action to create the lead record in Dynamics 365. Map information from the submitted form to the appropriate lead fields. Depending on your form, this could include information such as:
Once the record has been created, information from the new lead can also be used later in the flow.
Create a link to the lead record
A variable can be used to build a hyperlink that takes the salesperson directly to the new lead record. Format the hyperlink using HTML, insert the new lead's ID using dynamic content, and customize the link text to display the lead's name. This gives the recipient an easy way to move directly from the notification email to the relevant record in Dynamics 365.
Design the email notification
Another variable can store the email body, allowing you to incorporate HTML into the notification. The email can be as simple or detailed as needed. Basic HTML tags can help with formatting, such as paragraph and line break tags. Images can also be incorporated using hosted image links.
Starting with an existing HTML email template can make it easier to create a polished design without writing the entire message from scratch.
Send the email from Dynamics 365
There are multiple ways to send an email through Power Automate, including an Outlook action. In this example, the email is created in Dynamics 365 so the Regarding field can be set to the new lead. Use Dataverse to add a new email message and configure information such as:
Set Regarding to the lead created earlier in the flow. This associates the email with the lead so it appears in the lead's Dynamics 365 timeline.
After creating the email message, use a bound action to send it. One important limitation is that a mailbox can only be configured in one environment, such as production. Because of this, sending directly from Dynamics 365 may not work from a sandbox environment. The email record can still be viewed in the lead's timeline.
An Outlook action can also be used if you need to send and review the formatted message directly from an inbox.
Test the completed workflow
Once the flow is configured, test the entire process by submitting the form. Confirm that:
Automate lead follow-up from start to finish
With Power Automate, information submitted through a form can automatically become a lead in Dynamics 365 and trigger an email notification for your team. The workflow can use information from both the original response and the newly created lead, while HTML can make notifications easier to read and more professional.
Once configured, the entire process begins automatically whenever someone submits the form, helping your team reduce manual work and quickly identify new leads that need attention.
* This transcript summary has been generated from the Fast Class video by Microsoft Copilot. The Fast Class itself was prepared and taught by Syvantis expert consultants.
TUNE INTO THE LIVE CLASS
Ask your questions and get real-time responses from your trusted Syvantis consultants.
What's on the schedule?
Dynamics 365 Business Central
Dynamics 365 Sales (CRM)
Dynamics 365 Customer Insights
Power Platform
Keep learning...
Business Process Designers. Technical Experts. Dedicated Partners.