Layout Class

Represents the metadata associated with a page layout.

Metadata

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

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.

The custom buttons for this layout.

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

Type: List<String>

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

public Metadata.CustomConsoleComponents customConsoleComponents {get; set;}

Type: CustomConsoleComponents Class

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

public Boolean emailDefault {get; set;}

Type: Boolean

List of standard buttons to exclude from this layout.

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

Type: List<String>

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

public Metadata.FeedLayout feedLayout {get; set;}

Type: Metadata.FeedLayout

Represents the layout headers used for tagging.

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

Type: List<Metadata.LayoutHeader>

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

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

Type: List<Metadata.LayoutSection>

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

public Metadata.MiniLayout miniLayout {get; set;}

Type: Metadata.MiniLayout

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

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

Type: List<String>

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

public Metadata.PlatformActionList platformActionList {get; set;}

Type: Metadata.PlatformActionList

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

public Metadata.QuickActionList quickActionList {get; set;}

Type: Meatadata.QuickActionL.

The Related Content section of the page layout.

public Metadata.RelatedContent relatedContent {get; set;}

Type: Metadata.RelatedContent

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

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

Type: List<Metadata.RelatedListItem>

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

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

Type: List<String>

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

public Boolean runAssignmentRulesDefault {get; set;}

Type: Boolean

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.

public Boolean showEmailCheckbox {get; set;}

Type: Boolean

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

public Boolean showHighlightsPanel {get; set;}

Type: Boolean

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

public Boolean showInteractionLogPanel {get; set;}

Type: Boolean

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

public Boolean showKnowledgeComponent {get; set;}

Type: Boolean

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.

public Boolean showRunAssignmentRulesCheckbox {get; set;}

Type: Boolean

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

public Boolean showSolutionSection {get; set;}

Type: Boolean

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

public Boolean showSubmitAndAttachButton {get; set;}

Type: Boolean

The summary layout for this layout.

public Metadata.SummaryLayout summaryLayout {get; set;}

Type: Metadata.SummaryLayout

The following are methods for Layout.

  • clone()

    Makes a duplicate copy of the Metadata.Layout.

Makes a duplicate copy of the Metadata.Layout.

public Object clone()

Type: Object