getPicklist(objectName, fieldName)
This method accepts an object name and picklist field and returns the picklist values.
60.0
public static List<Map<String, String>> getPicklist(String objectName, String fieldName)
- objectName
Type: String
The name of the object that contains the picklist field.
- fieldName
Type: String
The name of the picklist field.
Type: List<Map<String, String>>
Returns the values of the specified picklist field.