Solved! Go to Solution.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:paramsGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:LastUpdateAtSelector">
<latestUpdatedAt>2013-11-06T09:58:58.862-08:00</latestUpdatedAt>
<oldestUpdatedAt>2013-11-05T09:58:58.863-08:00</oldestUpdatedAt>
</leadSelector>
<streamPosition></streamPosition>
<batchSize>1</batchSize>
<includeAttributes>
<stringItem>Email</stringItem>
<stringItem>munchkinID</stringItem>
</includeAttributes>
</ns2:paramsGetMultipleLeads>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:successGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<result>
<returnCount>1</returnCount>
<remainingCount>1</remainingCount>
<newStreamPosition>id:1937:to:1383674338:tl:1383760738:os:1:rc:1</newStreamPosition>
<leadRecordList>
<leadRecord>
<Id>1937</Id>
<Email>raj.rajamani+mktoblog@gmail.com</Email>
<ForeignSysPersonId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ForeignSysType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<leadAttributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</leadRecord>
</leadRecordList>
</result>
</ns2:successGetMultipleLeads>
The second call to getMultipleLeads passes the newStreamPosition value from the first call.
REQUEST:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:paramsGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:LastUpdateAtSelector">
<latestUpdatedAt>2013-11-06T09:59:57.516-08:00</latestUpdatedAt>
<oldestUpdatedAt>2013-11-05T09:59:57.517-08:00</oldestUpdatedAt>
</leadSelector>
<streamPosition>id:1937:to:1383674338:tl:1383760738:os:1:rc:1</streamPosition>
<batchSize>1</batchSize>
<includeAttributes>
<stringItem>Email</stringItem>
<stringItem>munchkinID</stringItem>
</includeAttributes>
</ns2:paramsGetMultipleLeads>
RESPONSE:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:successGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<result>
<returnCount>1</returnCount>
<remainingCount>0</remainingCount>
<newStreamPosition>id:1091275:to:1383674338:tl:1383760738:os:2:rc:0</newStreamPosition>
<leadRecordList>
<leadRecord>
<Id>1091275</Id>
<Email>jthao@marketo.com</Email>
<ForeignSysPersonId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ForeignSysType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<leadAttributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</leadRecord>
</leadRecordList>
</result>
</ns2:successGetMultipleLeads>
startPosition->offset |
Optional |
Used to paginate through large number of activity responses. The offset value is returned by the previous calls response field newStartPosition->offset. |
startPosition->activityCreatedAt |
Optional |
Used to paginate through large number of activity responses. The activityCreatedAt is returned by the previous call's response field newStartPosition->activityCreatedAt. (W3C WSDL date format). |
startPosition->latestCreatedAt |
Optional |
Used to paginate through large number of activity responses. The latestCreatedAt is returned by the previous call's response field newStartPosition->latestCreatedAt. (W3C WSDL date format). |
startPosition->oldestCreatedAt |
Optional |
Used to paginate through large number of activity responses. The oldestCreatedAt is returned by the previous call's response field newStartPosition->oldestCreatedAt. (W3C WSDL date format). |
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:paramsGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:LastUpdateAtSelector">
<latestUpdatedAt>2013-11-06T09:58:58.862-08:00</latestUpdatedAt>
<oldestUpdatedAt>2013-11-05T09:58:58.863-08:00</oldestUpdatedAt>
</leadSelector>
<streamPosition></streamPosition>
<batchSize>1</batchSize>
<includeAttributes>
<stringItem>Email</stringItem>
<stringItem>munchkinID</stringItem>
</includeAttributes>
</ns2:paramsGetMultipleLeads>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:successGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<result>
<returnCount>1</returnCount>
<remainingCount>1</remainingCount>
<newStreamPosition>id:1937:to:1383674338:tl:1383760738:os:1:rc:1</newStreamPosition>
<leadRecordList>
<leadRecord>
<Id>1937</Id>
<Email>raj.rajamani+mktoblog@gmail.com</Email>
<ForeignSysPersonId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ForeignSysType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<leadAttributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</leadRecord>
</leadRecordList>
</result>
</ns2:successGetMultipleLeads>
The second call to getMultipleLeads passes the newStreamPosition value from the first call.
REQUEST:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:paramsGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<leadSelector xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:LastUpdateAtSelector">
<latestUpdatedAt>2013-11-06T09:59:57.516-08:00</latestUpdatedAt>
<oldestUpdatedAt>2013-11-05T09:59:57.517-08:00</oldestUpdatedAt>
</leadSelector>
<streamPosition>id:1937:to:1383674338:tl:1383760738:os:1:rc:1</streamPosition>
<batchSize>1</batchSize>
<includeAttributes>
<stringItem>Email</stringItem>
<stringItem>munchkinID</stringItem>
</includeAttributes>
</ns2:paramsGetMultipleLeads>
RESPONSE:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:successGetMultipleLeads xmlns:ns2="http://www.marketo.com/mktows/">
<result>
<returnCount>1</returnCount>
<remainingCount>0</remainingCount>
<newStreamPosition>id:1091275:to:1383674338:tl:1383760738:os:2:rc:0</newStreamPosition>
<leadRecordList>
<leadRecord>
<Id>1091275</Id>
<Email>jthao@marketo.com</Email>
<ForeignSysPersonId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<ForeignSysType xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
<leadAttributeList xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true"/>
</leadRecord>
</leadRecordList>
</result>
</ns2:successGetMultipleLeads>