module Restforce::Concerns::Picklists

def picklist_values(sobject, field, options = {})

Returns an array of Restforce::Mash objects.

# => [#, ... ]
client.picklist_values('Automobile__c', 'Model__c', :valid_for => 'Honda')
# Make__c.
# Model__c and Make__c, where Model__c depends on the value of
# Given a custom object named Automobile__c with picklist fields

# => [#]
client.picklist_values('Account', 'Type')

Examples

value
that are valid for the controlling picklist
:valid_for - If specified, will only return picklist values
options - A hash of options. (default: {}).
field - The String name of the picklist/multipicklist field.
sobject - The String name of the sobject.

Public: Get the available picklist values for a picklist or multipicklist field.
def picklist_values(sobject, field, options = {})
  PicklistValues.new(describe(sobject)['fields'], field, options)
end