View Categories

Metadata Layout Related List

1 min read

Page Layout Related Lists (from the Metadata API) #

Pull Page Layout Related List configuration per Object, including related lists, fields, and display settings, for all Objects or a specified Object.

Results are loaded to table ss_SysLayoutRelatedList

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_MetaLayoutRelatedList 'DEMO', 'All'

Example of Use – Single #

exec ss_MetaLayoutRelatedList 'DEMO', 'Account'

ss_SysLayoutRelatedList table #

Column NamePurpose
ObjectNameSalesforce object the layout belongs to
LayoutFullNameAPI name of the layout (typically ObjectName-LayoutName)
LayoutNameUser-friendly name of the layout
RelatedListNumberSequence number of the related list within the layout
RelatedListAPI name of the related list (e.g. RelatedContactList, RelatedActivityList)
CustomButtonsCustom buttons included on the related list (if defined)
ExcludeButtonsButtons explicitly excluded from the related list
FieldPositionPosition of the field within the related list column layout
FieldNameField displayed in the related list (often in object.field format)
SortFieldField used to sort the related list records
SortOrderSort direction (e.g. Ascending or Descending)
ButtonsDisplayedWhich standard buttons are displayed on the related list
ColumnsNumber of columns shown in the related list layout
RowsNumber of rows displayed in the related list

Leave a comment

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