I am trying to fetch the ObjectID of an Automation created in Salesforce Marketing Cloud using SOAP API call. So that I can use that in starting the automation using API Call from a third party system.I am using the below code to fetch the same.
<?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>
<fueloauth xmlns="http://exacttarget.com">{{accessToken}}</fueloauth>
</soapenv:Header>
<soapenv:Body>
<RetrieveRequestMsg xmlns="http://exacttarget.com/wsdl/partnerAPI">
<RetrieveRequest>
<action>Retrieve</action>
<ObjectType>Automation</ObjectType>
<Properties>ProgramID</Properties>
<Properties>Name</Properties>
<Filter xsi:type="SimpleFilterPart">
<Property>Name</Property>
<SimpleOperator>equals</SimpleOperator>
<Value>Voucher_Redemption</Value>
</Filter>
</RetrieveRequest>
</RetrieveRequestMsg>
</soapenv:Body>
</soapenv:Envelope>
But in Response, I am getting 500 error code and also the below error XML.
<?xml version="1.0" encoding="utf-8"?>
http://schemas.xmlsoap.org/ws/2004/08/addressing/fault urn:uuid:10e22599-6abe-4531-9d09-9340245d1221 http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous 2019-07-03T12:27:29Z 2019-07-03T12:32:29Z soap:Sender **
WSE012: The input was not a valid SOAP message because the following information is missing: action.
**