RelatedListItem Class

Represents an item in the related list in a page layout.

Metadata

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.

  • customButtons

    A list of custom buttons used in the related list.

  • excludeButtons

    A list of excluded related-list buttons.

  • fields

    A list of fields displayed in the related list. Uses aliases instead of field or API names.

  • quickActions

    A list of quick actions used on the related list.

  • relatedList

    The name of the related list.

  • sortField

    The name of the field used for sorting.

  • sortOrder

    When sortField is set, the sortOrder property determines the sort order.

A list of custom buttons used in the related list.

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

Type: List<String>

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;}

Type: List<String>

A list of fields displayed in the related list. Uses aliases instead of field or API names.

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

Type: List<String>

A list of quick actions used on the related list.

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

Type: List<String>

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.

  • clone()

    Makes a duplicate copy of the Metadata.RelatedListItem.

Makes a duplicate copy of the Metadata.RelatedListItem.

public Object clone()

Type: Object