RelatedListItem Class
Represents an item in the related list in a page layout.
Use this class when accessing Metadata.Layout metadata components. For more information, see “RelatedListItem” in the Metadata API Developer Guide.
The following are properties for RelatedListItem.
-
A list of custom buttons used in the related list.
-
A list of excluded related-list buttons.
-
A list of fields displayed in the related list. Uses aliases instead of field or API names.
-
A list of quick actions used on the related list.
-
The name of the related list.
-
The name of the field used for sorting.
-
When
sortFieldis set, thesortOrderproperty determines the sort order.
A list of custom buttons used in the related list.
public List<String> customButtons {get; set;}
For more information, see “Define Custom Buttons and Links” in the Salesforce online help.
A list of excluded related-list buttons.
public List<String> excludeButtons {get; set;}
A list of fields displayed in the related list. Uses aliases instead of field or API names.
public List<String> fields {get; set;}
A list of quick actions used on the related list.
public List<String> quickActions {get; set;}
The name of the related list.
public String relatedList {get; set;}
Type: String
The name of the field used for sorting.
public String sortField {get; set;}
Type: String
When sortField is set, the sortOrder property determines the sort order.
public Metadata.SortOrder sortOrder {get; set;}
Type: Metadata.SortOrder
The following are methods for RelatedListItem.
-
Makes a duplicate copy of the
Metadata.RelatedListItem.
Makes a duplicate copy of the Metadata.RelatedListItem.
public Object clone()
Type: Object