Include Page | ||||
---|---|---|---|---|
|
- Get the SF lead and contact fields mapped to the LL Email field. [Which is SF Email by default, however the user can modify this any time].
- If there were SF lead or contact fields mapped to the LL Email field, then get a list of the SF Records -Leads and Contacts- with duplicate emails. Which returns something like this: eng.imad.atia@gmail.com [3 leads and 4 contacrs] emad.atya@leadliaison.com [4 leads] emad.atya@globalimpactsw.com [5 contacts]
- For each email with duplicates, we get a list of all the SF leads and contacts having the same email.
- Select the SF record which everything will be merged to according to the following cases, from top to bottom:
- If it is a SF Contact and synced to a LL visitor.
- If it is a SF Lead and synced to a LL visitor.
- If it is a Contact with latest contact create date.
- If it is a Lead with lateset lead create date.
- Get a list of all the Tasks and Activity history records assigned/linked to all the Other SF Conracts and Leads.
- Assign/Link all these Tasks and Activity history records to the selected SF record.
- Delete all the other SF Leads and Contacts.
- Remove the sync which was assigned/linked to all these SF records.