AnsweredAssumed Answered

Specifying a time range when pulling Opportunity records through SOAP

Question asked by e6b8da9a8822c52fa777b94d1d8d3e91e2e15e66 on Jun 26, 2015
Latest reply on Jun 29, 2015 by e6b8da9a8822c52fa777b94d1d8d3e91e2e15e66

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.

Outcomes