lnairn
VMware Employee
VMware Employee

Hi n8watcher​,

I think an easy way is to use pre-approval and subscription based on workflow (Scenario: Create a Pre-Approval Workflow Subscription ). In the pre-approval custom properties, add the custom property you want to modify (VMware.Attribute0.Name), and the value (VMware.Attribute0.Value) -- Configure the Approval Form to Include System and Custom Properties

Pre-Approval workflow will update the values previous the machine creation in vCenter and will populate the values in vCenter.

Pre-Approval wf needs to have (at least) two output values: approved (boolean) and fieldValues (Properties)

in approved you will have "true" and fieldValues will be the VMware.Attribute0.Name and VMware.Attribute0.Value:

Example for pre-approval wf:

var fieldValues = new Properties();

var approved = true;

fieldValues.put("source-provider-VMware.Attribute0.Name,VMware.Attribute0.Value);

Regards,

Leandro.

Reply
0 Kudos