0

How to perform a retrieve request to retrieve the LATEST subscribers from Salesforce?

<soap:Body>
  <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
     <RetrieveRequest>
        <ObjectType>Subscriber</ObjectType>
        <Properties>CreatedDate</Properties>
        <Properties>Client.ID</Properties>
        <Properties>EmailAddress</Properties>
        <Properties>SubscriberKey</Properties>
        <Properties>Status</Properties>
        <Properties>UnsubscribedDate</Properties>
        <Properties>EmailTypePreference</Properties>
        <Filter xsi:type="ns1:SimpleFilterPart" xmlns:ns1="http://exacttarget.com/wsdl/partnerAPI">
           <Property>Status</Property>
           <SimpleOperator>equals</SimpleOperator>
           <Value>Active</Value>
        </Filter>
     </RetrieveRequest>
  </RetrieveRequestMsg>

1 Answer 1

0

It looks like you want to target the "ListSubscriber" Object where the CreateDate is a recent value (greaterThan %%date%%).

Assuming only "Active" subscribers are being added to your All Subscribers List only, you can use the simple filter below:

<Property>CreatedDate</Property>
<SimpleOperator>greaterThan</SimpleOperator>
<Value>%%Variable Date Here%%</Value>
1
  • I am gonna use the subscriber object but I want it to be retrieve in descending order. Right now it's all the oldest subscribers getting retrieved.
    – callmejoe
    Commented Jan 15, 2020 at 6:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .