3 Replies Latest reply on Sep 14, 2015 11:55 PM by Jon Wu

    Can you use a Marketo lead ID instead of Email as a key in a form?

    Jon Wu
      I have a webhook that I'm using to associate a _mkto_trk cookie with leads as suggested by Marketo support. There's a lot of background there, but my goal was to associate a user's _mkto_trk with a duplciate lead synced in from Salesforce using the webhook. The problem is that the form uses Email is the key to figure out which lead to push the cookie to and Marketo often associates the cookie with the lead I don't want.

      If I could submit leadId instead of email in the form, this would solve the issue. Is this an option? What hidden field name would this use in the form and how do I get the leadId from a token in my webhook?

      I realize this seems pretty weird in terms of dealing with duplciates, and I'm also investigating other ways to handle that as well - perhaps by creating a webhook to trigger mergeLead logic from the SOAP API. The main issue we were trying to solve was https://community.marketo.com/MarketoDiscussionDetail?id=90650000000PpvjAAC, but support pointed me down this path.