Solved! Go to Solution.
- If lead with client ID 123 / email address client@email.com doesn't exist in Marketo, but lead client ID 456 / email address client@email.com exists in Marketo, I want to create the lead and associate the new custom objects to this new lead.
You can use your Client ID as a lookup key for the Leads endpoint, assuming it's a String.
I know this last scenario will create duplicates in Marketo, as the unique identifier is the email address
Email Address is not a unique identifier in Marketo, it's merely the default lookup key for the majority of (but not all) operations.
- If lead with client ID 123 / email address client@email.com doesn't exist in Marketo, but lead client ID 456 / email address client@email.com exists in Marketo, I want to create the lead and associate the new custom objects to this new lead.
You can use your Client ID as a lookup key for the Leads endpoint, assuming it's a String.
I know this last scenario will create duplicates in Marketo, as the unique identifier is the email address
Email Address is not a unique identifier in Marketo, it's merely the default lookup key for the majority of (but not all) operations.
Yep, all possible, we have exactly the situation you are describing with custom objects in Marketo.
We use Salesforce ID as our unique identifier, and have people with duplicated email addresses. When inserting custom objects, we use Salesforce ID as the unique lookup, and the link field.
Hello,
thank you both of you for your feedback, we'll proceed as you suggested.
Regards!!
David