I’m building a few pieces of automation to help coordinate the work I do with partners that are outside of my company, this requires integrating the leads and deals we’re working on which live in salesforce, tagging them with the partners that are involved or that have referred them in Notion, and then exposing them to people outside our business via a series of externally shared pages in Notion.
Salesforce → Notion “Lead Database” → Individual Notion Portals for specific partner companies
This Post is about the first step in this process: Keeping Salesforce and Notion in Sync in order to maintain a “lead database” in Notion current.
This is done with two scenarios:
-
New Salesforce lead is created → Update Notion Database
-
Salesforce lead is updated → Find if lead already exists, then update it, or create new lead if it doesn’t exist. In this case a search is run by tracking the unique identifier in Salesforce, which is imported into Notion to find whether a lead has already been brought it or not.
The problem is that for some reason, some leads are duplicated in the Notion Database, it only happens sometimes and the lead only appears two times. There are never 3 leads with the same identifier.
This makes me think that it’s likely a sync issue because of there being two separate scenarios, should I just time them so that one runs x amount of time after the other?
Any ideas on what I should try to look into to prevent duplicates from appearing?
Should I maybe add some automation that looks for duplicates based on that unique identifiers and deletes them on its own?