The Salesforce Developers website will undergo maintenance on May 29, 2024 from 3:00 a.m. UTC to 10:00 a.m. UTC. The maintenance process may affect the availability of our documentation. Please plan accordingly.

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.