View Categories

Metadata Layout

1 min read

Page Layouts (from the Metadata API) #

Pull Page Layout structure per Object, including sections, columns, fields, and display behaviour, for all Objects or a specified Object.

Results are loaded to table ss_SysLayout

Parameters #

ParameterPurpose
@ObjectNameSalesforce Object Name (for example Account).alternatively pass “All” to retrieve all Objects.
@EnvSQL Sales Environment Name, see Setup
@Special1Future use, not currently used
@Special2Future use, not currently used

Example of Use – All #

exec ss_MetaLayout 'DEMO', 'All'

Example of Use – Single #

exec ss_MetaLayout 'DEMO', 'Account'

ss_SysLayout table #

Column NamePurpose
ObjectNameSalesforce object the layout belongs to.
LayoutFullNameAPI name of the layout (typically ObjectName-LayoutName).
LayoutNameUser-friendly name of the layout.
SectionNumberSequence number of the section within the layout.
SectionLabelLabel of the section as displayed in the UI.
SectionStyleLayout style of the section (e.g. one column, two columns).
SectionDetailHeadingWhether the section heading is shown on the detail (view) page (1 = shown, 0 = hidden).
SectionEditHeadingWhether the section heading is shown on the edit page (1 = shown, 0 = hidden).
SectionCustomLabelWhether the section uses a custom label (1 = yes, 0 = standard).
ColumnNumberColumn position within the section.
ItemNumberPosition of the item within the column.
ItemTypeType of layout item (e.g. Field, CustomLink, Visualforce, EmptySpace).
BehaviorBehaviour of the item (e.g. Edit, ReadOnly, Required).
FieldNameAPI name of the field displayed (if the item is a field).
CustomLinkName of a custom link if the item is a link component.
PageVisualforce page name if the item is a page component.
SControlS-Control reference (legacy, rarely used).
ShowLabelWhether the label is displayed for the component (1 = shown, 0 = hidden).
ShowScrollbarsWhether scrollbars are enabled for components like Visualforce pages.
HeightHeight setting for components such as Visualforce pages.
WidthWidth setting for components such as Visualforce pages.
EmptySpacePlaceholder/blank space used for layout formatting.

Leave a comment

Your email address will not be published. Required fields are marked *