GET_PICKLIST_FIELD_OPTIONS
Description
Returns a list of options for the specified picklist field on a given object.
Syntax
GET_PICKLIST_FIELD_OPTIONS(object_name, field_name) -> String[]
Parameters
| Parameter | Data Type | Required | Description |
|---|---|---|---|
| object_name | String | Yes | The name of the object. |
| field_name | String | Yes | The name of the picklist field on the specified object. Non-picklist fields return an empty list. |
Example
GET_PICKLIST_FIELD_OPTIONS("Case","Priority")
-- Returns the picklist options for Case.Priority (e.g., ["High", "Medium", "Low"]).Tips
If the specified field is not a picklist, this function will return an empty list.