module Restforce::Concerns::API
def describe_layouts(sobject, layout_id = nil)
# => { ... }
client.describe_layouts('Account', '012E0000000RHEp')
# get the layout for the specified Id for the sobject
# => { ... }
client.describe_layouts('Account')
# get the layouts for the sobject
Examples:
Only available in version 28.0 and later of the Salesforce API.
multiple Record Types.
specified sobject type, or URIs for layouts if the sobject has
Public: Returns a detailed description of the Page Layout for the
def describe_layouts(sobject, layout_id = nil) version_guard(28.0) do if layout_id api_get("sobjects/#{sobject}/describe/layouts/#{CGI.escape(layout_id)}").body else api_get("sobjects/#{sobject}/describe/layouts").body end end end