Skip to main content
2 of 2
added 107 characters in body
Adrian Larson
  • 151.4k
  • 38
  • 247
  • 431

You can retrieve multiple tasks for an automation by first retrieving the ObjectID for your automation, then filtering on that when you retrieve the Activity object, as follows:

  1. Retrieve your ObjectID:

     <Body>
         <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
             <RetrieveRequest>
                 <ObjectType>Program</ObjectType>
                 <Properties>Program.ObjectID</Properties>
                 <Properties>Name</Properties>
                 <Filter xsi:type="SimpleFilterPart">
                     <Property>Name</Property>
                     <SimpleOperator>equals</SimpleOperator>
                     <Value>[my automation name]</Value>
                 </Filter>
             </RetrieveRequest>
         </RetrieveRequestMsg>
     </Body>
    
  2. Retrieve your activities, filtering on your ObjectID:

     <Body>
         <RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
             <RetrieveRequest>
                 <ObjectType>Activity</ObjectType>
                 <Properties>Name</Properties>
                 <Properties>Description</Properties>
                 <Properties>ObjectID</Properties>
                 <Properties>Step</Properties>
                 <Filter xsi:type="SimpleFilterPart">
                     <Property>Program.ObjectID</Property>
                     <SimpleOperator>equals</SimpleOperator>
                     <Value>[objectid from step 1]</Value>
                 </Filter>
             </RetrieveRequest>
         </RetrieveRequestMsg>
     </Body>
    

Curiously, it seems that both the Program and Activity object types are undocumented at the moment.