Our Sales organization uses Microsoft Dynamics 365 Sales, our Marketing organization uses HubSpot. I’m investigating the use of the Microsoft Dynamics 365 HubSpot app to sync Accounts, Contacts, and create a Lead when a HubSpot Contact becomes Marketing Qualified. It does not matter if a D365 Sales Contact already exists and it does not matter if a closed D365 Sales Lead already exists. If a HubSpot Contact becomes Marketing Qualified and there is no Active D365 Sales Lead, create one. Then once that D365 Sales Lead is qualified or disqualified, reset the HubSpot Marketing Qualified state, remove the HubSpot/CRM Match Record, and let the process start all over. Is something like this possible?
Partly. The D365 integration can sync your accounts and contacts, and it can create a Lead when a contact becomes an MQL if you use an inclusion list. The catch is the reset. Once a HubSpot contact is linked to a D365 record, that link stays, so it won’t spin up a fresh Lead each time the contact becomes an MQL again.
What I’d do is let the integration handle accounts and contacts, and create the Leads separately. When someone becomes an MQL, have a HubSpot workflow send a webhook to Power Automate. The flow checks for an active Lead and creates one only if there isn’t one. When that Lead gets qualified or disqualified, a second flow clears the lifecycle stage and MQL flag back in HubSpot, and the loop can start again.
It takes a bit of setup, but it does exactly what you described.
Once a HubSpot contact is linked to a D365 record, the link sticks, so the app won’t create a fresh Lead every time they hit MQL again. Alex’s webhook idea is the way I’d go too. Here’s how I’d build the HubSpot side:
Go to Automation, then Workflows, and create a contact-based workflow
Trigger: lifecycle stage is MQL (turn on re-enrollment so repeat MQLs get in)
Add the action Send a webhook (under Data ops), method POST, HTTPS URL from your Power Automate flow
In the body, send the contact ID and email so the flow can check D365 for an active Lead
Flow creates the Lead only if none is active
Second workflow, triggered when your flow writes back “Lead closed”, clears the MQL flag and lifecycle stage
Heads up, Send a webhook needs Data Hub Professional or Enterprise. I haven’t tested the exact reset behaviour with the D365 link, so test on one contact first.
Hi @corrivj, Alex and Brandon cover the build. Two things I’d plan for before setting it up:
If Power Automate creates the Leads, I’d turn off the app’s Lead sync (or keep MQL out of its lifecycle stage filter) and let it sync Accounts and Contacts only. Then there’s no Lead pairing to remove, so you never need to delete the match record, which HubSpot doesn’t offer a documented way to do anyway. Test it with a contact that’s already been linked to a Lead, since existing pairings may behave differently.
Resetting lifecycle stage on every loop also erases the MQL history marketing reports on. I’d write each cycle to separate properties, like an MQL count and a last MQL date, or use HubSpot’s Lead object, so you can still see how often a contact re-qualified and what came of it.
How often do you expect the same contact to come back around as an MQL?