module Restforce::Concerns::API
def find(sobject, id, field = nil)
field - External ID field to use (default: nil).
of the external field.
id - The id of the record. If field is specified, id should be the id
sobject - The String name of the sobject.
Public: Finds a single record and returns all fields.
def find(sobject, id, field = nil) if field url = "sobjects/#{sobject}/#{field}/#{URI.encode(id)}" else url = "sobjects/#{sobject}/#{id}" end api_get(url).body end