0

I want to be able to retrieve all sendevents from the date range and the subscriber list specified, however, I always get read time out when I do this in Prod. (Works fine in lower region.) How can I improve the architecture so that I can get all of the send events I need? (I need to obtain all of the SendIDs from those SendEvents).

`

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <env:Header>
        <Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
            <UsernameToken>
                <Username>XXX</Username>
                <Password>XXX</Password>
            </UsernameToken>
        </Security>
    </env:Header>
    <env:Body>
        <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
            <RetrieveRequest>
                <ClientIDs><ClientID>XXX</ClientID></ClientIDs>
                <ObjectType>SentEvent</ObjectType>
                <Filter xsi:type="ComplexFilterPart">
                    <LeftOperand xsi:type="SimpleFilterPart">
                        <Property>EventDate</Property>
                   <SimpleOperator>between</SimpleOperator>
                   <DateValue>2020-05-30T03:00:00.000Z</DateValue>
                   <DateValue>2020-06-29T02:59:59.999Z</DateValue>
                    </LeftOperand>
                    <LogicalOperator>AND</LogicalOperator>
                    <RightOperand xsi:type="SimpleFilterPart">
                                 <Property>SubscriberKey</Property>
                                 <SimpleOperator>IN</SimpleOperator>
                                 <Value>x@gmail.com</Value>
                                 <Value>C_x_y</Value>
                                 <Value>C_x1_y1</Value>
                                 <Value>C_x2_y2</Value>
                                 <Value>t</Value>
                                 <Value>dd@d.com</Value>
                    </RightOperand>
                </Filter>
                <Properties>SendId</Properties>
                <Properties>BatchId</Properties>
                <Properties>TriggeredSendDefinitionObjectID</Properties>
                <Properties>EventType</Properties>
               
            </RetrieveRequest>
        </RetrieveRequestMsg>
    </env:Body>
</env:Envelope>

`

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.