Create a callable function with picklist options
Recipe Tools
What it does
When someone calls this function in real time, the Workato Recipe Function receives the request and returns a result. The function accepts picklist options so the caller can choose from predefined values.
Who it's for
Engineering teams who need to expose reusable logic as a callable function with structured inputs.
Apps used
How teams use this
Standardize data choices across workflows
Use picklist options to ensure consistent values are passed to downstream systems. This prevents invalid data and reduces errors when multiple workflows call the same function.
Expose logic to other teams
Let sales or finance teams call this function from their workflows without building the logic themselves. They select from picklist options and get results without needing access to the underlying code.
Add validation to picklist selections
Include a condition that checks the selected picklist option against business rules before returning the result. Only valid selections proceed, and invalid ones return an error message.
How it works
- Receive the function call. The Workato Recipe Function is called in real time with picklist options as input parameters so the caller can select from predefined values without typing free text.
- Return the result. The Workato Recipe Function processes the selected picklist option and returns a result back to the caller immediately so they see the outcome in their workflow.