Pick-list Value
A Pick-list value is the representation of a value of a Salesforce pick-list field. Besides carrying the selected value, its methods allow the selected value's label to accessed, along with the values and labels of all the pick-list's options.
Related commands
record, relatedList& query
These commands are the producers of Data items, in which Pick-list values may appear in.
Methods
getEntries() | Resolves into a Collection containing values representing all the entries, or options, of the pick-list 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 pick-list value. The label is how this pick-list 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 pick-list 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 |