2 Replies Latest reply on Nov 5, 2013 3:24 AM by a3e8dd2974d7d639dea937a27a8fcb3894b7b310

    How to get multiple Leads that created after a specified date point?

      Hi all,

      Considering http://developers.marketo.com/documentation/soap/getmultipleleads/ ,
      I find that there is a parameter startPosition->oldestCreatedAt defined in the request of getMultipleLeads().
      But when trying to use it in C#, I can't find it in the WSDL v2.2.
      Should it be supported? Or is it supported at another position?

      Best Regards,
      Biao
        • Re: How to get multiple Leads that created after a specified date point?
          Marketo SOAP API is agnostic to programming language, platform, IDE and browser.
                    
                    The WSDL 2.2 defines oldestCreatedAt within StreamPosition.

                     
          <xs:complexType name="StreamPosition">
          <xs:sequence>
          <xs:element name="latestCreatedAt" type="xs:dateTime" minOccurs="0" maxOccurs="1" nillable="true"/>
          <xs:element name="oldestCreatedAt" type="xs:dateTime" minOccurs="0" maxOccurs="1" nillable="true"/>
          <xs:element name="activityCreatedAt" type="xs:dateTime" minOccurs="0" maxOccurs="1" nillable="true"/>
          <xs:element name="offset" type="xs:string" minOccurs="0" maxOccurs="1" nillable="true"/>
          </xs:sequence>
          </xs:complexType>


          Taken from the generic endpoint http://app.marketo.com/soap/mktows/2_2?WSDL
                    
                    Each instance has its own endpoint defined by the Munchkin ID.
                    
                    
                    The complete skeleton of getMultipleLeads is




          <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:mkt="http://www.marketo.com/mktows/">
             <soapenv:Header>
                <mkt:AuthenticationHeader>
                   <mktowsUserId>?</mktowsUserId>
                   <requestSignature>?</requestSignature>
                   <requestTimestamp>?</requestTimestamp>
                   <!--Optional:-->
                   <audit>?</audit>
                   <!--Optional:-->
                   <mode>?</mode>
                </mkt:AuthenticationHeader>
             </soapenv:Header>
             <soapenv:Body>
                <mkt:paramsGetMultipleLeads>
                   <!--Optional:-->
                   <leadSelector/>
                   <!--Optional:-->
                   <lastUpdatedAt>?</lastUpdatedAt>
                   <!--Optional:-->
                   <streamPosition>?</streamPosition>
                   <!--Optional:-->
                   <batchSize>?</batchSize>
                   <!--Optional:-->
                   <includeAttributes>
                      <!--Zero or more repetitions:-->
                      <stringItem>?</stringItem>
                   </includeAttributes>
                </mkt:paramsGetMultipleLeads>
             </soapenv:Body>
          </soapenv:Envelope>


                          

          • Re: How to get multiple Leads that created after a specified date point?
            Hi bgomes,

            I have seen these definitions before.
            But in 'paramsGetMultipleLeads', this 'streamPosition' is a string type parameter, not class 'StreamPosition'. It can't be used for created-time.
            Is it an implement error or a documentation mistake?

            Thanks & Regards,
            Biao