We can make a Retrieve call on an Automation object and if it contains only one Task get some details on that task. But, when there is more than one Task, the call does not return any information. Basically, we're trying to use the API to describe an automation, the tasks and activities. Has anyone solved this? Thanks!
Automation with one task: https://d.pr/i/eQaryb
SOAP Call:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-32259181" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>[username[</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">[password]</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>Automation</ObjectType>
<Properties>*</Properties>
<Filter xsi:type="SimpleFilterPart">
<Property>ProgramID</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>9bee2fc2-38db-4aa0-806c-a618850edd5f</Value>
</Filter>
</RetrieveRequest>
</RetrieveRequestMsg>
</soapenv:Body>
</soapenv:Envelope>
SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action>RetrieveResponse</wsa:Action>
<wsa:MessageID>urn:uuid:179a77cd-12e9-44b8-91bd-c7fe24eacb91</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:555c9794-a6ba-4f56-be00-2439a20eaca7</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-02868ad0-c876-40f2-ac88-5549d30a57e1">
<wsu:Created>2019-02-27T02:46:18Z</wsu:Created>
<wsu:Expires>2019-02-27T02:51:18Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<OverallStatus>OK</OverallStatus>
<RequestID>6780b1c7-83cc-4849-8cac-21dbef37678a</RequestID>
<Results xsi:type="Automation">
<Client/>
<PartnerKey xsi:nil="true"/>
<PartnerProperties>
<Name>AutomationType</Name>
<Value>scheduled</Value>
</PartnerProperties>
<CreatedDate>2018-12-03T18:58:38.61</CreatedDate>
<ModifiedDate>2019-02-26T12:22:45.607</ModifiedDate>
<ObjectID>9bee2fc2-38db-4aa0-806c-a618850edd5f</ObjectID>
<CustomerKey>9a621fe5-afa5-55af-1aa1-04b8581933cd</CustomerKey>
<IsPlatformObject>false</IsPlatformObject>
<Name>KM_Test</Name>
<Description>Kevin testing Automation Studio functions.</Description>
<AutomationTasks>
<AutomationTask>
<PartnerKey xsi:nil="true"/>
<ObjectID xsi:nil="true"/>
<Activities>
<Activity>
<PartnerKey xsi:nil="true"/>
<CreatedDate>2019-02-26T12:22:45.45</CreatedDate>
<ObjectID>ef5c5f0c-095f-4480-953a-f69e8db9f050</ObjectID>
<CustomerKey>c16acd5a-37c3-459c-ba7d-54816ff9ef6b</CustomerKey>
<Name>Only Influencers We re Hiring</Name>
<Description/>
<IsActive>true</IsActive>
<Definition>
<PartnerKey xsi:nil="true"/>
<ObjectID xsi:nil="true"/>
<CustomerKey>c16acd5a-37c3-459c-ba7d-54816ff9ef6b</CustomerKey>
</Definition>
<Sequence>0</Sequence>
</Activity>
</Activities>
</AutomationTask>
</AutomationTasks>
<IsActive>true</IsActive>
<Status>2</Status>
<AutomationType>scheduled</AutomationType>
<LastRunInstanceID/>
<CreatedBy>11049166</CreatedBy>
<CategoryID>1329642</CategoryID>
<LastRunTime>2018-12-03T19:07:01.487</LastRunTime>
<LastSaveDate>2019-02-26T12:22:45.117</LastSaveDate>
<ModifiedBy>-1000</ModifiedBy>
<RecurrenceID>00000000-0000-0000-0000-000000000000</RecurrenceID>
</Results>
</RetrieveResponseMsg>
</soap:Body>
</soap:Envelope>
Automation with two tasks: https://d.pr/i/Ef9iZV SOAP Call:
<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken-32259181" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>[username[</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">[password]</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ObjectType>Automation</ObjectType>
<Properties>*</Properties>
<Filter xsi:type="SimpleFilterPart">
<Property>ProgramID</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>9bee2fc2-38db-4aa0-806c-a618850edd5f</Value>
</Filter>
</RetrieveRequest>
</RetrieveRequestMsg>
</soapenv:Body>
</soapenv:Envelope>
SOAP Response:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<soap:Header>
<wsa:Action>RetrieveResponse</wsa:Action>
<wsa:MessageID>urn:uuid:7bcf452a-99d4-47b7-bd14-cc5e4b6ac977</wsa:MessageID>
<wsa:RelatesTo>urn:uuid:1671ea39-0bbc-45b9-ade3-2c16af93589a</wsa:RelatesTo>
<wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
<wsse:Security>
<wsu:Timestamp wsu:Id="Timestamp-5e840af2-e3c2-4cd8-9ddd-c7c6ce37aabd">
<wsu:Created>2019-02-27T02:48:33Z</wsu:Created>
<wsu:Expires>2019-02-27T02:53:33Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<RetrieveResponseMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<OverallStatus>OK</OverallStatus>
<RequestID>e17f4162-df93-43fc-9d29-7f36572bd1bf</RequestID>
<Results xsi:type="Automation">
<Client/>
<PartnerKey xsi:nil="true"/>
<PartnerProperties>
<Name>AutomationType</Name>
<Value>scheduled</Value>
</PartnerProperties>
<CreatedDate>2018-12-03T18:58:38.61</CreatedDate>
<ModifiedDate>2019-02-26T20:48:26.65</ModifiedDate>
<ObjectID>9bee2fc2-38db-4aa0-806c-a618850edd5f</ObjectID>
<CustomerKey>9a621fe5-afa5-55af-1aa1-04b8581933cd</CustomerKey>
<IsPlatformObject>false</IsPlatformObject>
<Name>KM_Test</Name>
<Description>Kevin testing Automation Studio functions.</Description>
<AutomationTasks/>
<IsActive>true</IsActive>
<Status>1</Status>
<AutomationType>scheduled</AutomationType>
<LastRunInstanceID/>
<CreatedBy>11049166</CreatedBy>
<CategoryID>1329642</CategoryID>
<LastRunTime>2018-12-03T19:07:01.487</LastRunTime>
<LastSaveDate>2019-02-26T20:48:26.277</LastSaveDate>
<ModifiedBy>-1000</ModifiedBy>
<RecurrenceID>00000000-0000-0000-0000-000000000000</RecurrenceID>
</Results>
</RetrieveResponseMsg>
</soap:Body>
</soap:Envelope>
Thanks!