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:
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>
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.