51黑料不打烊

getLead

This function retrieves a single lead record from Marketo, with all field values for the built-in and custom fields, for a lead identified by the provided key (LeadKey). If the lead exists based on the input parameters, the lead record attributes will be returned in the result.

NOTE: Lead attributes that are of string data type and are empty will not be returned as a part of the response.

Request

Field Name
Required/Optional
Description
leadKey->keyType
Required
keyType allows you to specify the field you wish to query the lead by. Possible values include:IDNUM, COOKIE, EMAIL, SFDCLEADID, LEADOWNEREMAIL, SFDCACCOUNTID, SFDCCONTACTID, SFDCLEADID, SFDCLEADOWNERID, SFDCOPPTYID
leadKey->keyValue
Required
keyValue is the value you wish to query the lead by.

Request XML

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.marketo.com/mktows/">
    <SOAP-ENV:Header>
        <ns1:AuthenticationHeader>
            <mktowsUserId>bigcorp1_461839624B16E06BA2D663</mktowsUserId>
            <requestSignature>ffbff4d4bef354807481e66dc7540f7890523a87</requestSignature>
            <requestTimestamp>2013-07-30T14:15:06-07:00</requestTimestamp>
        </ns1:AuthenticationHeader>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <ns1:paramsGetLead>
            <leadKey>
                <keyType>EMAIL</keyType>
                <keyValue>rufus@marketo.com</keyValue>
            </leadKey>
        </ns1:paramsGetLead>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>