Associating Salesforce accounts and leads to calls
When a call recording ends the system goes through the following algorithm to associate it with a Salesforce account or lead:
-
The system extracts the list of meeting invitees from the calendar invite
-
The system connects to the conference provider (e.g. Zoom or WebEx) and retrieves the list of attendees (this list depends on the email the attendees typed when connecting to the conference so it’s not always accurate)
-
The system merges the two lists into a single list of potential participants
-
The system performs the following steps per each participant in the list:
-
Uses the participant’s email address to find a Salesforce contact with the exact same email address. If found, the system retrieves the account connected to that contact and associates the call with that account.
-
Uses the participant’s email address to find a Salesforce lead with the exact same email address. If found, the system associates the call to the lead.
-
If an account or a lead was associated with the call using either of the above two methods, the system then continues to the next participant in the list and repeats step 1.
If no association is found, the system extracts the domain from the participant’s email address, and searches in Salesforce for a contact with the same email domain:
-
The system associates the call with the account connected to that contact
-
The system creates a virtual contact with the participant’s email address. Going forward, if a real Salesforce contact was found during the batch sync, then this virtual contact is connected to the real Salesforce contact.
-
The system continues to the next participant in the list and repeats step 1
If no contact is found using the email domain, the system searches in Salesforce for a lead with the same email domain as the participant. If a match is found:
-
The system creates a virtual lead with the email address of the participant and the same company name as the found lead, and connects the call to the virtual lead. The virtual lead is converted to a real lead if that lead is later found during the batch sync.
-
The system associates the newly created lead with the call
-
The system continues to the next participant in the list and repeats step 1
Note
-
For some participants a match between the participant’s email address and both contact (step 1) and lead (step 2) will be found. When this occurs, the call is associated with the account connected to the contact and the lead
-
The system may find an association of different accounts and/or leads to different participants. When this occurs, all the found accounts and/or Leads are associated with the call
-
When an account is associated with a call, the system looks for all the open opportunities of that account, and within them it looks for the opportunity that had an activity (with an activity date closest to the date of the call); and it associates this opportunity with the call (an 'activity' includes any change in an Opportunity field, for example change of stage or close date, etc.).