Skip to main content
November 5, 2013
Question

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

  • November 5, 2013
  • 2 replies
  • 873 views
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
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

November 5, 2013
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>


 

November 5, 2013
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