options_select type
This reference documents the Slack types at the platform level. Their availability and structure may differ in each SDK
Type: object
Dynamic options in Workflow Builder can be rendered in one of two ways: as a drop-down menu or as a set of fields.
The dynamic input parameter can be rendered as a drop-down menu, which will use the options obtained from a custom step with an options output parameter of the type options_select. The drop-down menu UI component can be rendered in two ways: single-select, or multi-select.
options_select example
To render the dynamic input as a single-select menu, the input parameter defining the dynamic option must be of the type string.
"step-with-dynamic-input": {
"title": "Step that uses a dynamic input",
"description": "This step uses a dynamic input rendered as a single-select menu",
"input_parameters": {
"dynamic_single_select": {
"type": "string", // this must be of type string for single-select
"title": "dynamic single select drop-down menu",
"description": "A dynamically-populated single-select drop-down menu",
"is_required": true,
"dynamic_options": {
"function": "#/functions/get-options",
"inputs": {},
},
}
},
"output_parameters": {}
}
To render the dynamic input as a multi-select menu, the input parameter defining the dynamic option must be of the type array, and its items must be of type string.
"step-with-dynamic-input": {
"title": "Step that uses a dynamic input",
"description": "This step uses a dynamic input rendered as a multi-select menu",
"input_parameters": {
"dynamic_multi_select": {
"type": "array", // this must be of type array for multi-select
"items": {
"type": "string"
},
"title": "dynamic single select drop-down menu",
"description": "A dynamically-populated multi-select drop-down menu",
"dynamic_options": {
"function": "#/functions/get-options",
"inputs": {},
},
}
},
"output_parameters": {}
}