Layout Class
Represents the metadata associated with a page layout.
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.
-
The custom buttons for this layout.
-
Represents custom console components (Visualforce pages, lookup fields, or related lists) on a page layout.
-
Default value for the email checkbox. Only relevant if the
showEmailCheckboxproperty is set. -
List of standard buttons to exclude from this layout.
-
Represents the values that define the feed view of a feed-based page layout.
-
Represents the layout headers used for tagging.
-
The main sections of the layout containing fields, s-controls, and custom links. The order here determines the layout order.
-
Represents a minilayout, which is used in the mini view of a record in the Console tab, hover details, and event overlays.
-
Fields for special multiline layout fields which appear in OpportunityProduct layouts.
-
The list of actions, and their order, that display in the Salesforce mobile action bar for the layout.
-
The list of quick actions that display in the full Salesforce site for the page layout.
-
The Related Content section of the page layout.
-
The related lists for the layout, listed in the order they appear in the user interface.
-
The list of related objects that appears in the mini view of the console.
-
Default value for the “run assignment rules” checkbox. Only relevant if the
showRunAssignmentRulesCheckboxproperty is set. -
Controls whether to show the email checkbox. Only allowed on Case, CaseClose, and Task layouts. The default state of checkbox is controlled by the
emailDefaultproperty. -
If set, the highlights panel displays on pages in the Salesforce console.
-
If set, the interaction log displays on pages in the Salesforce console.
-
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
runAssignmentRulesDefaultproperty. -
Only allowed on CaseClose layout. If set, the built-in solution information section shows up on the page.
-
For Cast layouts only. If set, the Submit & Add Attachment button displays on case edit pages to portal users in the Customer Portal.
-
The summary layout for this layout.
The custom buttons for this layout.
public List<String> customButtons {get; set;}
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;}
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;}
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;}
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.
-
Makes a duplicate copy of the
Metadata.Layout.
Makes a duplicate copy of the Metadata.Layout.
public Object clone()
Type: Object