9 Replies Latest reply on Nov 7, 2018 9:30 PM by Jay Jiang

    SOAP API - Unable to get lead using Cookie?

    Josef Lobotka

      I'm trying to get Anonymous Lead through the SOAP API. This would be the source code within XML's body:

       

         '<mkt:paramsGetLeadActivity>',

         '<leadKey>',

         '<keyType>COOKIE</keyType>',

         '<keyValue>id:XXX-XXX-XXX&amp;token:_mch-domain.com-1533412128399-11111</keyValue>',

         '</leadKey>',

         '<startPosition>',

         '<latestCreatedAt />',

         '<offset />',

         '</startPosition>',

         '<batchSize>10</batchSize>',

         '</mkt:paramsGetLeadActivity>',

       

      The resulting error is Lead does not exist, which is not true, because it is possible to obtain the Anonymous Lead using Marketo ID ('IDNUM' keyType, as documented at http://developers.marketo.com/soap-api/leads/getlead/).


      Is this bug or feature? If it's intentional, is there any other way how to obtain Marketo ID from a Cookie? (Using SOAP, JS, REST, Munchkin etc.)

       

      Thank you for your help, Joe