Add the #DF24 Developer Keynote to your agenda. Join us in-person on 9/18 at 2:30 p.m. PT or on Salesforce+ at 5 p.m. PT for the must-see session built just for developers.

Object Layout

Gets layout metadata for the specified object type and parameters.

  • API version (string, optional)
  • Object API name (string, required)
  • Form factor (string, optional)—“Large” (default), “Medium”, or “Small”
  • Layout type (string, optional)—”Full” (default) or “Compact”
  • Mode (string, optional)—”View” (default, “Create”, or “Edit”
  • Record type ID (string, optional)—The ID of the RecordType object for the new record. If not provided, the default record type is used.
Swift

Objective-C

Kotlin

Java