Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics 365 | Integration, Dataverse...
Suggested answer

HubSpot Duplicate Leads Sync - RESOLVED

(0) ShareShare
ReportReport
Posted on by 83

Hello Everyone! 

If you're like me, you've noticed that HubSpot has a super clean Dynamics 365 sync - however, when the HubSpot contacts sync into leads, they're overwriting the historical data. I.e. if I fill in a form asking for pricing on a new car, then immediately write a second submission asking for pricing on a boat, Dynamics will only show the most recent submission for the boat query. I can tell you right now, after discussing with HubSpot at length, they do not have an override to allow duplicate entries - and creating duplicate contacts for each form submission in HubSpot is a marketer's worst nightmare. BUT, there's another way - here's how we tackled this issue: 

***NOTE: this is for a ONE way sync HubSpot -> Dynamics 365. This has not been tested for a 2-way sync and may not be applicable.***

  1. HubSpot syncs based on email address, domain & company name - regardless of the status in Dynamics (qualified, disqualified) it will continue to overwrite data when changes are made. 
  2. In Power Apps (or classic) go ahead and add the fields that you capture in HubSpot if you haven't already. At my company we utilize forms that ask things such as "Reason for reaching out" as these fields tend to change with each form submission. The goal here is to capture the HubSpot data in a single or multiline text field.
  3. Add a field to identify the lead as a "Master HubSpot Lead" (yes/no option set). I also added a new status reason of “Deactivated – Master HubSpot Lead Record” - I did that to make it easier to filter these leads from our portal views.
  4. Add a field with a business rule to mark whether the lead comes from HubSpot, OR if you have a field “HubSpot Form ID”, “Lead Source eq HubSpot”, etc. you can use that to filter your Power Automate flow.
  5. Build a Power Automate flow that whenever a lead is added or modified filtered based on whether it’s a HubSpot Lead and select the columns that change with each submission you created in step 2. This is important so leads aren’t just being created crazily – which I’ve done, not the best method. If you’re unfamiliar with how to build a flow that takes one lead & duplicates it, here’s our template!

 PA-Flow-Steps-.png

This flow is working like this

  1. When a row is added or modified based on 3 columns (my description columns that change from HubSpot forms), trigger the flow.
  2. Get the row that’s been updated. Power Automate doesn’t discuss this enough, but you should always put “Get Row by ID” after your Dataverse triggers.
  3. Add a new row, this is creating the duplicate lead. Use the outputs from “Get Row by ID” to get clean text data – minimal issues!
  4. Update a row, this is setting the original lead status to Disqualified, Master HubSpot Record.

That’s all there is to it! Now, whenever a contact fills out a new form on HubSpot, the flow kicks on & my sales team gets alerted that their customer wants additional things. One thing to note, the PA flow will claim it’s failing because the record is already deactivated, it still creates the copy lead. It jus doesn’t go through with the final step – which is fine, that’s less important than the copy!

Let me know if you guys find this useful 

  • Suggested answer
    Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: HubSpot Duplicate Leads Sync - RESOLVED

    Hi Perry H,

    Thanks for sharing the solution. It really helps. 

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,711 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans