Hello,
I used a foreach workflow to execute some tasks. I need to get the output.
When i designed the WF, vRO create automatically the output of an Array of composite type which contain the 4 output of my WF
I tryed to read data in these composite type, but i am unable to retrieve the content.
Does anyone has an exemple on how to get data ?
I need to read the outputPS which is an PowershellRemotePSObject.
Thanks for you help
A composite type is effectively just a POJO with the keys being the "property names" of your composite type.
So you should just be able to reference myobject.outputPS.
e.g.,
System.debug(System.getObjectClassName(myObject.outputPS)); // PowerSHell:PowerShellRemovePSObject
Check the following thread for some hints / sample code showing how to deal with result of type PowerShellRemotePSObject: