Layout Class

Represents the metadata associated with a page layout.

Namespace

Metadata

Usage

Use this class to access layout metadata components. For more information, see Layout in the Metadata API Developer Guide.

Layout Properties

The following are properties for Layout.

  • customButtons
    The custom buttons for this layout.
  • customConsoleComponents
    Represents custom console components (Visualforce pages, lookup fields, or related lists) on a page layout.
  • emailDefault
    Default value for the email checkbox. Only relevant if the showEmailCheckbox property is set.
  • excludeButtons
    List of standard buttons to exclude from this layout.
  • feedLayout
    Represents the values that define the feed view of a feed-based page layout.
  • headers
    Represents the layout headers used for tagging.
  • layoutSections
    The main sections of the layout containing fields, s-controls, and custom links. The order here determines the layout order.
  • miniLayout
    Represents a minilayout, which is used in the mini view of a record in the Console tab, hover details, and event overlays.
  • multilineLayoutFields
    Fields for special multiline layout fields which appear in OpportunityProduct layouts.
  • platformActionList
    The list of actions, and their order, that display in the Salesforce mobile action bar for the layout.
  • quickActionList
    The list of quick actions that display in the full Salesforce site for the page layout.
  • relatedContent
    The Related Content section of the page layout.
  • relatedLists
    The related lists for the layout, listed in the order they appear in the user interface.
  • relatedObjects
    The list of related objects that appears in the mini view of the console.
  • runAssignmentRulesDefault
    Default value for the “run assignment rules” checkbox. Only relevant if the showRunAssignmentRulesCheckbox property is set.
  • showEmailCheckbox
    Controls whether to show the email checkbox. Only allowed on Case, CaseClose, and Task layouts. The default state of checkbox is controlled by the emailDefault property.
  • showHighlightsPanel
    If set, the highlights panel displays on pages in the Salesforce console.
  • showInteractionLogPanel
    If set, the interaction log displays on pages in the Salesforce console.
  • showKnowledgeComponent
    Only allowed on Case layouts. If set, the Knowledge sidebar displays on cases in the Salesforce console.
  • showRunAssignmentRulesCheckbox
    Controls whether to show the Run Assignment Rules checkbox. Only allowed on Lead and Case layouts. The default state of checkbox is controlled by the runAssignmentRulesDefault property.
  • showSolutionSection
    Only allowed on CaseClose layout. If set, the built-in solution information section shows up on the page.
  • showSubmitAndAttachButton
    For Cast layouts only. If set, the Submit & Add Attachment button displays on case edit pages to portal users in the Customer Portal.
  • summaryLayout
    The summary layout for this layout.

customButtons

The custom buttons for this layout.

Signature

public List<String> customButtons {get; set;}

Property Value

Type: List<String>

customConsoleComponents

Represents custom console components (Visualforce pages, lookup fields, or related lists) on a page layout.

Signature

public Metadata.CustomConsoleComponents customConsoleComponents {get; set;}

Property Value

Type: CustomConsoleComponents Class

emailDefault

Default value for the email checkbox. Only relevant if the showEmailCheckbox property is set.

Signature

public Boolean emailDefault {get; set;}

Property Value

Type: Boolean

excludeButtons

List of standard buttons to exclude from this layout.

Signature

public List<String> excludeButtons {get; set;}

Property Value

Type: List<String>

feedLayout

Represents the values that define the feed view of a feed-based page layout.

Signature

public Metadata.FeedLayout feedLayout {get; set;}

Property Value

Type: Metadata.FeedLayout

headers

Represents the layout headers used for tagging.

Signature

public List<Metadata.LayoutHeader> headers {get; set;}

Property Value

Type: List<Metadata.LayoutHeader>

layoutSections

The main sections of the layout containing fields, s-controls, and custom links. The order here determines the layout order.

Signature

public List<Metadata.LayoutSection> layoutSections {get; set;}

Property Value

Type: List<Metadata.LayoutSection>

miniLayout

Represents a minilayout, which is used in the mini view of a record in the Console tab, hover details, and event overlays.

Signature

public Metadata.MiniLayout miniLayout {get; set;}

Property Value

Type: Metadata.MiniLayout

multilineLayoutFields

Fields for special multiline layout fields which appear in OpportunityProduct layouts.

Signature

public List<String> multilineLayoutFields {get; set;}

Property Value

Type: List<String>

platformActionList

The list of actions, and their order, that display in the Salesforce mobile action bar for the layout.

Signature

public Metadata.PlatformActionList platformActionList {get; set;}

Property Value

Type: Metadata.PlatformActionList

quickActionList

The list of quick actions that display in the full Salesforce site for the page layout.

Signature

public Metadata.QuickActionList quickActionList {get; set;}

Property Value

Type: Meatadata.QuickActionL.

relatedContent

The Related Content section of the page layout.

Signature

public Metadata.RelatedContent relatedContent {get; set;}

Property Value

Type: Metadata.RelatedContent

relatedLists

The related lists for the layout, listed in the order they appear in the user interface.

Signature

public List<Metadata.RelatedListItem> relatedLists {get; set;}

Property Value

Type: List<Metadata.RelatedListItem>

relatedObjects

The list of related objects that appears in the mini view of the console.

Signature

public List<String> relatedObjects {get; set;}

Property Value

Type: List<String>

runAssignmentRulesDefault

Default value for the “run assignment rules” checkbox. Only relevant if the showRunAssignmentRulesCheckbox property is set.

Signature

public Boolean runAssignmentRulesDefault {get; set;}

Property Value

Type: Boolean

showEmailCheckbox

Controls whether to show the email checkbox. Only allowed on Case, CaseClose, and Task layouts. The default state of checkbox is controlled by the emailDefault property.

Signature

public Boolean showEmailCheckbox {get; set;}

Property Value

Type: Boolean

showHighlightsPanel

If set, the highlights panel displays on pages in the Salesforce console.

Signature

public Boolean showHighlightsPanel {get; set;}

Property Value

Type: Boolean

showInteractionLogPanel

If set, the interaction log displays on pages in the Salesforce console.

Signature

public Boolean showInteractionLogPanel {get; set;}

Property Value

Type: Boolean

showKnowledgeComponent

Only allowed on Case layouts. If set, the Knowledge sidebar displays on cases in the Salesforce console.

Signature

public Boolean showKnowledgeComponent {get; set;}

Property Value

Type: Boolean

showRunAssignmentRulesCheckbox

Controls whether to show the Run Assignment Rules checkbox. Only allowed on Lead and Case layouts. The default state of checkbox is controlled by the runAssignmentRulesDefault property.

Signature

public Boolean showRunAssignmentRulesCheckbox {get; set;}

Property Value

Type: Boolean

showSolutionSection

Only allowed on CaseClose layout. If set, the built-in solution information section shows up on the page.

Signature

public Boolean showSolutionSection {get; set;}

Property Value

Type: Boolean

showSubmitAndAttachButton

For Cast layouts only. If set, the Submit & Add Attachment button displays on case edit pages to portal users in the Customer Portal.

Signature

public Boolean showSubmitAndAttachButton {get; set;}

Property Value

Type: Boolean

summaryLayout

The summary layout for this layout.

Signature

public Metadata.SummaryLayout summaryLayout {get; set;}

Property Value

Type: Metadata.SummaryLayout

Layout Methods

The following are methods for Layout.

  • clone()
    Makes a duplicate copy of the Metadata.Layout.

clone()

Makes a duplicate copy of the Metadata.Layout.

Signature

public Object clone()

Return Value

Type: Object