Regarding Automations, the documentation references Automation, AutomationInstances and AutomationInstance SOAP objects. Sounds like one of the key pieces of data you want is the status of the last run instance. Each time you run an automation it creates an instance. Unfortunately the 'LastRunInstanceID' property on the Automation object always seems to ...
There's example code here.
// SOAP_CLIENT_BASEDIR - folder that contains the PHP Toolkit and your WSDL
// $USERNAME - variable that contains your Salesforce.com username (must be in the form of an email)
// $PASSWORD - variable that contains your Salesforce.ocm password
Anyone looking for an answer to the above question - the below code worked -
<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">
<fueloauth>Add your appropriate authentication key/code here which ...
Rather than utilize the POST and build out the xml envelope, etc., why not utilize WSProxy inside SSJS and then be able to parse the JSON returned?
WSProxy has better efficiency than AMPscript/SSJS API functions - meaning it will be quicker AND it is returned in a format that is native to SSJS and easily parsed.
var prox = new Script.Util.WSProxy();
I spent some time frustrated with this exact thing a while back, and never figured it out. I did figure out how to update the subject line of an email send definition to display a prefix if it was a test send, which functions similar to what you are asking. I ended up coding to add it and remove it for a series of data proofs on a monthly recurring project ...
After a lengthy debugging, the following lines turns out to be ignored
The code that establish the lowest level of tunneling is
In its getHttpProxyAuthentication function, it will use
PasswordAuthentication a = ...