What is the format for getMultipleLeads? | Community
Skip to main content
April 9, 2013
Question

What is the format for getMultipleLeads?

  • April 9, 2013
  • 2 replies
  • 865 views
I am attempting to call getMultipleLeads method on your soap api using following XML but am receiving this error: "Server raised fault: '20110 - Bad parameter'". The documentation specifies an array of LeadKeys, which seems to work for syncMultipleLeads, but not getMultipleLeads.

Can you give me an example of the format getMultipleLeads is expecting for a list of email addresses?

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:ns1="marketo.com/mktows/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
   <SOAP-ENV:Header>
      <ns1:AuthenticationHeader>
         <mktowsUserId>REMOVED</mktowsUserId>
         <requestSignature>REMOVED</requestSignature>
         <requestTimestamp>2013-04-09T12:10:58-04:00</requestTimestamp>
      </ns1:AuthenticationHeader>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body>
      <ns1:paramsGetMultipleLeads>
         <leadSelector>
            <Email>test@bullhorn.com</Email>
         </leadSelector>
         <leadSelector>
            <Email>test2@bullhorn.com</Email>
         </leadSelector>
      </ns1:paramsGetMultipleLeads>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

April 15, 2013
...
April 15, 2013
Here is an example:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
   <soapenv:Header>
      <mkt:AuthenticationHeader>
         <mktowsUserId>XXXX</mktowsUserId>
         <requestSignature>XXXX</requestSignature>
         <requestTimestamp>2013-04-15T00:00:00-06:00</requestTimestamp>
      </mkt:AuthenticationHeader>
   </soapenv:Header>
   <soapenv:Body>
      <mkt:paramsGetMultipleLeads>
         <leadSelector xsi:type="mkt:LeadKeySelector" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <keyType>IDNUM</keyType>
    <keyValues>
     <stringItem>1</stringItem>
     <stringItem>2</stringItem>
    </keyValues>
   </leadSelector>
         <includeAttributes>
            <!--Zero or more repetitions:-->
            <stringItem>ID</stringItem>
            <stringItem>Email</stringItem>
            <stringItem>FirstName</stringItem>
            <stringItem>LastName</stringItem>
         </includeAttributes>
      </mkt:paramsGetMultipleLeads>
   </soapenv:Body>
</soapenv:Envelope>