With the custom attributes workflows, you can add custom attributes to virtual machines or get a custom attribute for a virtual machine.

Add custom attribute to a virtual machine
Adds a custom attribute to a virtual machine.
Add custom attribute to multiple virtual machines
Adds a custom attribute to a selection of virtual machines.
Get custom attribute
Gets a custom attribute for a virtual machine in vCenter Server.