I have 2 vRA environments. One side works fine, the other side gives me an error when I simply try to pull the machine ID from the payload.
virtualMachineId = machine.get("id");
It gives me an error: "Unable to convert object, '7ba7229a-38d8-42db-89a5-66aa6067430b' plugin unexcepted exception : Bad type syntax 'string'"
I have a case open with VM right now, but so far no resolutions. I upgraded vRO to 7.3.1 to see if it was a vRO issue, but still nothing.
DLally, Sorry to hear that you are running into this issue. I tried the following on 7.3 and it worked fine:
var virtualMachineId = payload.get("machine").get("id");
System.log("Virtual Machine ID:" + virtualMachineId);
Please give it a try.