How to tell salesforce I merged a contact?
Short question: Is there an id that's a custom field on a lead in salesforce that I can copy to a contact within salesforce that tells marketo that I deleted the lead on salesforce and "merged" it into a contact?
Context and longer version of the question:
We regularly have an overlapping lead/contact in marketo: a lead is created in marketo via the munchkin API when a user signs up to our platform, and a contact is created in salesforce from our billing system/CRM. In marketo we see the duplicates, but any future web activity tracked in marketo goes to the lead, not the contact. We want to be able to automatically merge the lead into the contact when a duplicate is identified.
I understand from from this support doc https://docs.marketo.com/display/public/DOCS/SFDC+Sync%3A+Contact+Sync that we should be doing the merge in salesforce, since we don't want to create a new contact and account. So I created a simply flow that pushes marketo leads to salesforce once they have been identified as a possible duplicate to an existing salesforce contact. And this is where our question begins.
In the lead generated in marketo I only care about the marketo custom fields and marketo web activity. I don't care about any existing lead activity in salesforce (none will exist, since the lead was created in marketo). and I don't care about any contact data, since everything will already have been inputted correctly directly to the contact by our CRM.
What I would like to do is create a trigger in salesforce that looks for these leads in salesforce, and then copies over the key Marketo Sales Insight field values and any necessary Marketo ID's onto the contact and simply delete the lead.
Can I do this? If yes, what field is the default marketo id? If not, any suggestions?
Thank you!!