Re: What is the format for getMultipleLeads?

Anonymous
Not applicable

What is the format for getMultipleLeads?

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: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>
Tags (1)
2 REPLIES 2
Anonymous
Not applicable

Re: What is the format for getMultipleLeads?

...
Anonymous
Not applicable

Re: What is the format for getMultipleLeads?

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>