0

For Example: I want to convert this complexfilterpart into ETFilter, Idea behind this, to filter get results for status Active and greater then given completed time

 <ns2:RetrieveRequestMsg xmlns:ns2="http://exacttarget.com/wsdl/partnerAPI">
        <ns2:RetrieveRequest>
            <ns2:ObjectType>AutomationInstance</ns2:ObjectType>
            <ns2:Properties>Name</ns2:Properties>
            <ns2:Properties>StartTime</ns2:Properties>
            <ns2:Properties>CompletedTime</ns2:Properties>
            <ns2:Properties>Status</ns2:Properties>
            <ns2:Filter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
               xsi:type="ns2:ComplexFilterPart">
             <ns2:LeftOperand xsi:type="ns2:SimpleFilterPart">
              <ns2:Property>Status</ns2:Property>
              <ns2:SimpleOperator>equals</ns2:SimpleOperator>
              <ns2:Value>Active</ns2:Value>
            </ns2:LeftOperand>
           <ns2:LogicalOperator>AND</ns2:LogicalOperator>
             <ns2:RightOperand xsi:type="ns2:SimpleFilterPart">
              <ns2:Property>CompletedTime</ns2:Property>
              <ns2:SimpleOperator>greaterThan</ns2:SimpleOperator>
              <ns2:DateValue>2019-11-11T09:41:40.623</ns2:DateValue>
             </ns2:RightOperand>
           </ns2:Filter>
        </ns2:RetrieveRequest>
  </ns2:RetrieveRequestMsg>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.