Newer Version Available

This content describes an older version of this product. View Latest

getPicklist(objectName, fieldName)

This method accepts an object name and picklist field and returns the picklist values.

API Version

60.0

Signature

public static List<Map<String, String>> getPicklist(String objectName, String fieldName)

Parameters

objectName
Type: String
The name of the object that contains the picklist field.
fieldName
Type: String
The name of the picklist field.

Return Value

Type: List<Map<String, String>>

Returns the values of the specified picklist field.