Hi all – I’m looking for guidance on building a Salesforce Flow that supports our HubSpot integration and helps cleanly associate new Leads with existing Accounts.
Here’s the scenario:
-
We have a working integration between HubSpot and Salesforce.
-
When a new Lead is created in Salesforce (often via HubSpot form submission), I want to automatically associate that Lead to an existing Account if the email domain matches.
-
Specifically:
- When a Lead is created, extract the domain from the Lead’s email address.
- Search all Accounts to find a match based on that domain (e.g., @acmecorp.com matches acmecorp.com).
- If only one Account is found with that domain, associate the Lead to that Account.
- If multiple Accounts share the same domain, I want the Flow to then compare the Lead’s Company Name to Account names to find a more precise match.
Has anyone built a Flow like this before?
Any shared examples, screenshots, or tips (including where to watch out for gotchas with the integration) would be hugely appreciated.
Thanks in advance!

