Add dynamic inputs to an activity
Configure your activity to show a certain set of fields based on the value of another input, such as a selected catalog item, selected decision table, or even a REST API response.
始める前に
Role required: playbook.admin, pd_author, action_designer, flow_designer, admin
Familiarize yourself with the other Workflow Studio components. Dynamic inputs are created with actions and subflows:
- In the ServiceNow AI Platform, you will create a new data definition for the dynamic input fields you want to add to an activity.
- In Workflow Studio, you will create a data gathering action.
- Still in Workflow Studio, you will create a subflow or another action with a dynamic input to consume the first action. This subflow or new action creates a JSON schema that represents the field(s) you want to add to an activity.
- In the ServiceNow AI Platform, you will create an activity definition using the subflow or action with the dynamic input.
Once your activity definition is created, Playbooks authors can add and configure activities with the dynamic inputs.
このタスクについて
A dynamic input is an input that changes based on another input. In Workflow Studio Playbooks, you can present multiple dynamic inputs based on another input.
Example
When a user requests catalog items, you can dynamically present a list of catalog variables based on the selected catalog item.
- The first input required is for the Catalog Item field.
- A user selects iPad mini in the Catalog item field.
- Two (2) additional fields for color and storage options appear in response to the user selecting an iPad mini as the Catalog Item.