You can populate a property value in a drop-down menu by using vRealize Orchestrator script actions.
About this task
You can define a relationship between two property definitions if you populate the values of the dependent property by using a vRealize Orchestrator script action.
You can bind a property definition to a vRealize Orchestrator script action, but not to a vRealize Orchestrator workflow.
Create a vRealize Orchestrator script action. For information about developing workflows and creating and using vRealize Orchestrator script actions, see Developing with VMware vCenter Orchestrator .
Create a new property definition or edit an existing one. See Create a Property Definition.
The following task sequence differs from the Create a Property Definition task sequence only in how you specify the Display Advice value.
- Create a new property definition or edit an existing property definition.
- Verify that the Name text box contains a value.
- Verify that the Label text box contains a value.
- Verify that the Data type text box contains either Decimal, Integer, or String.
- Click in the Display Advice text box and select Dropdown from the drop-down menu.
- Click the External values option in the Values area.
A page opens displaying supplied and user-created vRealize Orchestrator script actions.
- Select a vRealize Orchestrator script action and click OK.
Select a user-generated vRealize Orchestrator script action that is appropriate for your property. The supplied vRealize Orchestrator script actions typically require or generate complex values that are not supported by vRealize Automation property definitions.
The Input parameters grid displays all the parameters that are available for the script action and that can be used to assign a value. One of the columns is labeled as Bind. When Bind is not checked, the action uses the literal value to pass as the value of that parameter. When Bind is checked, the value becomes the name of the field whose value is used as the value for that parameter.
A drop-down menu displays available property definitions to make it easier to bind to a known field. You can select an available value or enter a different custom property.
- Click OK.