options_field 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 input parameter is rendered as a set of fields with keys and values. The option fields are obtained from a custom step with an options output parameter of type options_field. The input parameter that defines the dynamic option must be of type object, as the completed set of fields in Workflow Builder will be passed to the custom step as an untyped object during workflow execution.
options_field example
"test-field-dynamic-options": {
"title": "Test dynamic field options",
"description": "",
"input_parameters": {
"dynamic_fields": {
"type": "object",
"title": "Dynamic custom field options",
"description": "A dynamically-populated section of input fields",
"dynamic_options": {
"function": "#/functions/get-field-options",
"inputs": {}
"selection_type": "key-value",
}
}
},
"output_parameters": {}
}