Specifying a time range when pulling Opportunity records through SOAP

Anonymous
Not applicable

Specifying a time range when pulling Opportunity records through SOAP

I have this SOAP request:

<tns:paramsGetMObjects xmlns="" xmlns:tns="http://www.marketo.com/mktows/">

  <type>Opportunity</type>

  <mObjCriteriaList>

    <mObjCriteria>

      <attrName>externalcreateddate</attrName>

      <comparison>GT</comparison>

      <attrValue>2015-06-01T00:00:00Z</attrValue>

    </mObjCriteria>

    <mObjCriteria>

      <attrName>externalcreateddate</attrName>

      <comparison>LT</comparison>

      <attrValue>2015-06-02T00:00:00Z</attrValue>

    </mObjCriteria>

  </mObjCriteriaList>

</tns:paramsGetMObjects>

In my intentions, that should pull all the Opportunity objects on 6/1/2015. But it actually seems to pull all Opportunity objects.

If I specify only the GT criteria, I do get only objects created after 6/1...

Am I doing anything wrong there? Aren't multiple criteria combined as AND condition? If not, is there a way for me to express a time interval?

Thanks.

1 REPLY 1
Anonymous
Not applicable

Re: Specifying a time range when pulling Opportunity records through SOAP

Anyone?