SOLVED

Re: Email Missing from GetLead - SOAP API

Go to solution
Anonymous
Not applicable

Email Missing from GetLead - SOAP API

Does anyone have an idea why the SOAP API would not return the email in it's response to GetLead (by cookie)?

Every other field comes back fine, but Email is missing.

Here is example output from a GetLead call via PHP:

$records Array [17]
0 stdClass
attrName AnonymousIP
attrType string
attrValue 120.150.203.191
1 stdClass
attrName FirstName
attrType string
attrValue fab
2 stdClass
attrName InferredCompany
attrType string
attrValue Telstra Internet
3 stdClass
attrName InferredCountry
attrType string
attrValue Australia
4 stdClass
attrName Medic_Check_URL
attrType string
attrValue http://www.leadmechanics.com.au/
5 stdClass
attrName Medic_CNAME2_Status
attrType string
attrValue Marketo email CNAMEs found: go.leadmechanics.com.au->mkto-ab010099.com (leadmechanics.com.au)
6 stdClass
attrName Medic_CNAME2_Valid
attrType boolean
attrValue 1
7 stdClass
attrName Medic_CNAME_Status
attrType string
attrValue Marketo landing page CNAMEs found: info.leadmechanics.com.au->earlydays.mktoweb.com (leadmechanics.com.au)
8 stdClass
attrName Medic_CNAME_Valid
attrType boolean
attrValue 1
9 stdClass
attrName Medic_DKIM_Status
attrType string
attrValue DKIM exists (leadmechanics.com.au)
10 stdClass
attrName Medic_DKIM_Valid
attrType boolean
attrValue 1
11 stdClass
attrName Medic_Score
attrType integer
attrValue 50
12 stdClass
attrName Medic_SPF_Status
attrType string
attrValue SPF exists (leadmechanics.com.au->v=spf1 include:_spf.google.com include:mktomail.com ~all)
13 stdClass
attrName Medic_SPF_Valid
attrType boolean
attrValue 1
14 stdClass
attrName Medic_Tracking_Status
attrType string
attrValue No Marketo tracking found
15 stdClass
attrName Title
attrType string
attrValue diirector
16 stdClass
attrName Website
attrType url
attrValue hooshmarketing.com 
Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Email Missing from GetLead - SOAP API

Reading back the provided example XML in the method specs, I realized the response Email field was contained in leadRecord class contained in leadRecordList class contained in result class contained in the output class from getLead method marketo soap api call, instead of one of the classes from the attribute array contained in the leadAttributeList class contained in the leadRecord class.

View solution in original post

2 REPLIES 2
Calvin_Lam
Level 4

Re: Email Missing from GetLead - SOAP API

It's probably because the lead is anonymous - no previous form fillout of email address
Anonymous
Not applicable

Re: Email Missing from GetLead - SOAP API

Reading back the provided example XML in the method specs, I realized the response Email field was contained in leadRecord class contained in leadRecordList class contained in result class contained in the output class from getLead method marketo soap api call, instead of one of the classes from the attribute array contained in the leadAttributeList class contained in the leadRecord class.