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
Return Value
Type: List<Map<String, String>>
Returns the values of the specified picklist field.