I want to get the request completion as text, but it is being stubborn. I want to pass this to another workflow, but it will not populate the output. When I set the output to any, it stores as base64.
Thank you
var objects;
switch(objectType)
{
case "catalog":
objects = Server.findAllForType("vCACCAFE:CatalogItemRequest");
break;
case "host":
objects = Server.findAllForType("VC:HostSystem");
break;
default:
objects = Server.findAllForType(objectType);
//throw("Unknown object type: " + objectType);
}
//System.log('id: ' + name.toLowerCase());
var temp
for each (var object in objects) {
if (object.id.match(name)) {
//if (exactMatch && (object.name.length != name.length)) {
// continue; // Wasn't an exact match, so skip this object
//}
temp = object.requestCompletion
System.log('id: ' + temp);
}
}
matchingObjects = temp
DynamicWrapper (Instance) : [vCACCAFERequestCompletion]-[class com.vmware.vcac.catalog.rest.stubs.RequestCompletion] -- VALUE : SUCCESSFUL - Request Completed Successfully. Created TPRTNR-MULTI20 and TPRTNR-MULTI21