Hello,
I'm trying to read this objects types from vCO PowerShell plugin. I try to pass this obects between "Scriptable Task".
I try to execute an external PowerShell Script from the default workflow provided by the plugin. This is the code:
var output;
var session;
try {
session = host.openSession();
var script = '& "' + externalScript + '" ' + arguments;
output = System.getModule("com.vmware.library.powershell").invokeScript(host,script,session.getSessionId()) ;
} finally {
if (session){
host.closeSession(session.getSessionId());
}
}
And then i try to read the outoput variable as a PowerShellRemotePSObject type on another "Scriptable Task".
I read on vmware vco PS plugin, that I can use the functions: getXml(), or getRootObject(), and getAsJson(), but any of these returns me anyting.
The other thing is that I don't know how can I read it
The external script, on a powershell windows returns me a value, the value that I need.
Does anyone, that can help with this little problem?
Thank you very much
Best Regards,
Francesc