Picklist Value
A Picklist value is the representation of a value of a Salesforce picklist field. Besides carrying the selected value, its methods allow the selected value's label to accessed, along with the values and labels of all of the picklist's options.
Related commands
record, relatedList & query
These commands are the producers of Data items, in which Picklist values may appear in.
Methods
getEntries() | Resolves into a Collection containing values representing all the entries, or options, of the picklist field this value is from. Each entry value has two properties, For example, if looping through the Collection accessed with Using the shorthand form the expression becomes |
getLabel() | Resolves into a String that is the label of the selected picklist value. The label is how this picklist value appears to users in the Salesforce UI. If the For example, the expression Using the shorthand form the expression becomes |
getValue() | Resolves into a String that is the API value of the selected picklist value. If the value appears numeric and you wish to use it as a Number rather than a String, make use of the For example, the expression Using the shorthand form the expression becomes |