If you just need to pass a
You can call a vCO workflow passing the virtualMachineId in one of the 6 vCAC workflow stub or 4 menu operations. In vCO you create a workflow with a virtualMachineID input.
On the vCO side you can use the vCAC plug-in to covert the virtual machine ID to a vCAC VM object like this:
//Find VirtualMachine Entity from virtualMachine ID var vCACVirtualMachines = Server.findAllForType("vCAC:VirtualMachine"); //vCAC VM var vCACVM = null; for each (var vCACVirtualMachine in vCACVirtualMachines) { if (vCACVirtualMachine.virtualMachineID == virtualMachineId) { vCACVM = vCACVirtualMachine; break; } } System.log(vCACVM);
With the vCAC VM object you have access to all its properties that you can pass to your vCO workflow.