Get Record Layout Metadata

GET {{_endpoint}}/services/data/v{{version}}/ui-api/layout/:SOBJECT_API_NAME

Get metadata about page layouts for the specified object type.

Request Params

KeyDatatypeRequiredDescription
formFactornullThe layout display size for the record. One of these values:
Large—(Default) Use this value to get a layout for desktop display size.
Medium—Use this value to get a layout for tablet display size.
Small—Use this value to get a layout for phone display size.
layoutTypesnullThe layout type for the record. A collection of any of these values:
Compact—Use this value to get a layout that contains a record’s key fields.
Full—(Default) Use this value to get a full layout.
modesnullThe access mode for the record. This value determines which fields to get from a layout. Layouts have different fields for create, edit, and view modes. For example, formula fields are rendered in view mode, but not in create mode because they’re calculated at run time, like formulas in a spreadsheet. A collection of any of these values:
Create—Use this mode if you intend to build UI that lets a user create a record. This mode is used by the /ui-api/record-defaults/create/<SOBJECT_API_NAME> resource.
Edit—Use this mode if you intend to build UI that lets a user edit a record. This mode is used by the /ui-api/record-defaults/clone/<RECORD_ID> resource.
View—(Default) Use this mode if you intend to build UI that displays a record.
recordTypeIdnullThe ID of the record type (RecordType object) for the new record. If not provided, the default record type is used.

RESPONSES

status: OK

{&quot;eTag&quot;:&quot;07ce091fdbe7461d6b2a8813c63d3124&quot;,&quot;id&quot;:&quot;00hB0000000JrBIIA0&quot;,&quot;layoutType&quot;:&quot;Full&quot;,&quot;mode&quot;:&quot;View&quot;,&quot;objectApiName&quot;:&quot;Account&quot;,&quot;recordTypeId&quot;:&quot;012000000000000AAA&quot;,&quot;saveOptions&quot;:[],&quot;sections&quot;:[{&quot;collapsible&quot;:false,&quot;columns&quot;:2,&quot;heading&quot;:&quot;Account Information&quot;,&quot;id&quot;:&quot;01BB0000002rP1oMAE&quot;,&quot;layoutRows&quot;:[{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;Account Owner&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;OwnerId&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Owner ID&quot;}],&quot;lookupIdApiName&quot;:&quot;OwnerId&quot;,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Rating&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Rating&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Rating&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Account Name&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Name&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Name&quot;}],&quot;lookupIdApiName&quot;:&quot;Id&quot;,&quot;required&quot;:true,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Phone&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Phone&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Phone&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Parent Account&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;ParentId&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Parent Account ID&quot;}],&quot;lookupIdApiName&quot;:&quot;ParentId&quot;,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Fax&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Fax&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Fax&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Account Number&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;AccountNumber&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Number&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Website&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Website&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Website&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Account Site&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Site&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Site&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Ticker Symbol&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;TickerSymbol&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Ticker Symbol&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Type&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Type&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Type&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Ownership&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Ownership&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Ownership&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Industry&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Industry&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Industry&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Employees&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;NumberOfEmployees&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Employees&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Annual Revenue&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;AnnualRevenue&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Annual Revenue&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;SIC Code&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Sic&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;SIC Code&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]}],&quot;rows&quot;:8,&quot;useHeading&quot;:false},{&quot;collapsible&quot;:false,&quot;columns&quot;:2,&quot;heading&quot;:&quot;Address Information&quot;,&quot;id&quot;:&quot;01BB0000002rP1sMAE&quot;,&quot;layoutRows&quot;:[{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Billing Address&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;BillingStreet&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Billing Street&quot;},{&quot;apiName&quot;:&quot;BillingPostalCode&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Billing Zip/Postal Code&quot;},{&quot;apiName&quot;:&quot;BillingCity&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Billing City&quot;},{&quot;apiName&quot;:&quot;BillingState&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Billing State/Province&quot;},{&quot;apiName&quot;:&quot;BillingCountry&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Billing Country&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Shipping Address&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;ShippingStreet&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Shipping Street&quot;},{&quot;apiName&quot;:&quot;ShippingPostalCode&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Shipping Zip/Postal Code&quot;},{&quot;apiName&quot;:&quot;ShippingCity&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Shipping City&quot;},{&quot;apiName&quot;:&quot;ShippingState&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Shipping State/Province&quot;},{&quot;apiName&quot;:&quot;ShippingCountry&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Shipping Country&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]}],&quot;rows&quot;:1,&quot;useHeading&quot;:false},{&quot;collapsible&quot;:false,&quot;columns&quot;:2,&quot;heading&quot;:&quot;Additional Information&quot;,&quot;id&quot;:&quot;01BB0000002rP1pMAE&quot;,&quot;layoutRows&quot;:[{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Customer Priority&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;CustomerPriority__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Customer Priority&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;SLA&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;SLA__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;SLA&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;SLA Expiration Date&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;SLAExpirationDate__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;SLA Expiration Date&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;SLA Serial Number&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;SLASerialNumber__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;SLA Serial Number&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Number of Locations&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;NumberofLocations__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Number of Locations&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Upsell Opportunity&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;UpsellOpportunity__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Upsell Opportunity&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]},{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Active&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Active__c&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Active&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:null,&quot;componentType&quot;:&quot;EmptySpace&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]}],&quot;rows&quot;:4,&quot;useHeading&quot;:false},{&quot;collapsible&quot;:false,&quot;columns&quot;:2,&quot;heading&quot;:&quot;System Information&quot;,&quot;id&quot;:&quot;01BB0000002rP1rMAE&quot;,&quot;layoutRows&quot;:[{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;Created By&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;CreatedById&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Created By ID&quot;},{&quot;apiName&quot;:&quot;CreatedDate&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Created Date&quot;}],&quot;lookupIdApiName&quot;:&quot;CreatedById&quot;,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;Last Modified By&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;LastModifiedById&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Last Modified By ID&quot;},{&quot;apiName&quot;:&quot;LastModifiedDate&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Last Modified Date&quot;}],&quot;lookupIdApiName&quot;:&quot;LastModifiedById&quot;,&quot;required&quot;:false,&quot;sortable&quot;:false}]}],&quot;rows&quot;:1,&quot;useHeading&quot;:false},{&quot;collapsible&quot;:false,&quot;columns&quot;:1,&quot;heading&quot;:&quot;Description Information&quot;,&quot;id&quot;:&quot;01BB0000002rP1tMAE&quot;,&quot;layoutRows&quot;:[{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:true,&quot;editableForUpdate&quot;:true,&quot;label&quot;:&quot;Description&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Description&quot;,&quot;componentType&quot;:&quot;Field&quot;,&quot;label&quot;:&quot;Account Description&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]}],&quot;rows&quot;:1,&quot;useHeading&quot;:false},{&quot;collapsible&quot;:false,&quot;columns&quot;:3,&quot;heading&quot;:&quot;Custom Links&quot;,&quot;id&quot;:&quot;01BB0000002rP1nMAE&quot;,&quot;layoutRows&quot;:[{&quot;layoutItems&quot;:[{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:&quot;Billing&quot;,&quot;behavior&quot;:&quot;NewWindow&quot;,&quot;componentType&quot;:&quot;CustomLink&quot;,&quot;customLinkUrl&quot;:&quot;/servlet/servlet.Integration?lid=00bB0000000Dr7e\u0026eid=ENTITY_ID\u0026ic=1&quot;,&quot;label&quot;:&quot;Billing&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:null,&quot;componentType&quot;:&quot;EmptySpace&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false},{&quot;editableForNew&quot;:false,&quot;editableForUpdate&quot;:false,&quot;label&quot;:&quot;&quot;,&quot;layoutComponents&quot;:[{&quot;apiName&quot;:null,&quot;componentType&quot;:&quot;EmptySpace&quot;}],&quot;lookupIdApiName&quot;:null,&quot;required&quot;:false,&quot;sortable&quot;:false}]}],&quot;rows&quot;:1,&quot;useHeading&quot;:false}]}