AnsweredAssumed Answered

newStreamPosition empty in getMultipleLeads response

Question asked by 2300012c35ea10957fa5bd34000aa3728fab789e on Nov 26, 2013
Latest reply on Mar 4, 2015 by 2b349e51d8d93487b7364b4ca895ca5c2fe81b30

     Hi,

     I am facing some issue in getMultipleLeads API. According to the documentation we can do pagination using streamPosition parameter and value assigned should be taken from last calls response  i.e. "newStreamPosition". But I am not recieving anything in "newStreamPosition". Below is my SOAP request.

     <?xml version="1.0" encoding="UTF-8"?>
     <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
         <SOAP-ENV:Header>
             <ns1:AuthenticationHeader xmlns:ns1="http://www.marketo.com/mktows/">
                 <mktowsUserId>***********************************</mktowsUserId>
                 <requestSignature>**************************************************</requestSignature>
                 <requestTimestamp>2013-11-26T13:59:52-08:00</requestTimestamp>
             </ns1:AuthenticationHeader>
         </SOAP-ENV:Header>
         <SOAP-ENV:Body>
             <ns1:paramsGetMultipleLeads xmlns:ns1="http://www.marketo.com/mktows/">
                 <leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                     xsi:type="ns1:LeadKeySelector">
                     <keyType>IDNUM</keyType>
                     <keyValues>
                         <stringItem>1</stringItem>
                         <stringItem>2</stringItem>
                         <stringItem>3</stringItem>
                         <stringItem>4</stringItem>
                         <stringItem>5</stringItem>
                         <stringItem>6</stringItem>
                         <stringItem>7</stringItem>
                     </keyValues>
                 </leadSelector>
                 <batchSize>3</batchSize>
             </ns1:paramsGetMultipleLeads>
         </SOAP-ENV:Body>
     </SOAP-ENV:Envelope>

     My marketo instance has all of these leads. Response I got from Marketo is

     <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
         xmlns:ns1="http://www.marketo.com/mktows/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
         <SOAP-ENV:Header />
         <SOAP-ENV:Body>
             <ns1:successGetMultipleLeads>
                 <result>
                     <returnCount>3</returnCount>
                     <remainingCount>4</remainingCount>
                     <newStreamPosition />
                     <leadRecordList>
                              3 Lead Records
                     </leadRecordList>
                 </result>
             </ns1:successGetMultipleLeads>
         </SOAP-ENV:Body>

     <newStreamPosition> is empty. Can you check if anything wrong with my request?

Outcomes