I would like to retrieve the ProgramID/ObjectID of an automation in a Business Unit, but the "ClientIDs.ID" or "Client.ID" doesn't seem to work.
<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>
<Security xmlns="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<UsernameToken>
<Username>###</Username>
<Password>###</Password>
</UsernameToken>
</Security>
</soapenv:Header>
<soapenv:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<ClientIDs>
<ID>123456</ID>
</ClientIDs>
<ObjectType>Automation</ObjectType>
<Properties>ProgramID</Properties>
<Properties>Name</Properties>
<Properties>Status</Properties>
<Properties>IsActive</Properties>
<Properties>AutomationType</Properties>
<Properties>ScheduledTime</Properties>
<Filter xsi:type="SimpleFilterPart">
<Property>Name</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>MyAutomation</Value>
</Filter>
<QueryAllAccounts>true</QueryAllAccounts>
</RetrieveRequest>
</RetrieveRequestMsg>
</soapenv:Body>
</soapenv:Envelope>
I get the response: "No Rows were found".
Would anyone be able to help spot my mistake?
ProgramID
properties. Could you recheck your code