---
schema_version: "1"
id: 476f50975a5bf45a53ace98e28d52919500683d7cbd45dd70f64213887735a82
title: PlatformActionList Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_PlatformActionList.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 54ff7595e437b3d815d356fd447ba11eaa71253c811c91c6d53609e3044f2c3d
description: Represents the list of actions, and their order, that display in the Salesforce mobile action bar for the layout.The context of the action list.The actions in the platform action list.When the actionListContext property is “RelatedList” or” “RelatedListRecord”, this field represents the API name of the related list to which the action belongs.Makes a duplicate copy of the Metadata.PlatformActionList.
---
# PlatformActionList Class

Represents the list of actions, and their order, that display in the Salesforce mobile action bar for the layout.

## Namespace

[Metadata](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_Metadata.htm "The Metadata namespace provides classes and methods for working with custom metadata in Salesforce")

## Usage

Use this class when accessing [Metadata.Layout](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_Layout.htm#apex_class_Metadata_Layout "Represents the metadata associated with a page layout.") metadata components. For more information, see “PlatformActionList” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[PlatformActionList Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm#apex_Metadata_PlatformActionList_properties)**
- **[PlatformActionList Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm#apex_Metadata_PlatformActionList_methods)**

## PlatformActionList Properties

The following are properties for PlatformActionList.

- **[actionListContext](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm#apex_Metadata_PlatformActionList_actionListContext)**  
    The context of the action list.
- **[platformActionListItems](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm#apex_Metadata_PlatformActionList_platformActionListItems)**  
    The actions in the platform action list.
- **[relatedSourceEntity](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm#apex_Metadata_PlatformActionList_relatedSourceEntity)**  
    When the actionListContext property is “RelatedList” or” “RelatedListRecord”, this field represents the API name of the related list to which the action belongs.

### actionListContext

The context of the action list.

#### Signature

public Metadata.PlatformActionListContextEnum actionListContext {get; set;}

#### Property Value

Type: [Metadata.PlatformActionListContextEnum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_PlatformActionListContextEnum.htm#apex_enum_Metadata_PlatformActionListContextEnum "Describes the different contexts of action lists.")

### platformActionListItems

The actions in the platform action list.

#### Signature

public List<Metadata.PlatformActionListItem> platformActionListItems {get; set;}

#### Property Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[Metadata.PlatformActionListItem](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_class_Metadata_PlatformActionListItem "Represents an action in the platform action list for a layout.")\>

### relatedSourceEntity

When the actionListContext property is “RelatedList” or” “RelatedListRecord”, this field represents the API name of the related list to which the action belongs.

#### Signature

public String relatedSourceEntity {get; set;}

#### Property Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

## PlatformActionList Methods

The following are methods for PlatformActionList.

- **[clone()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionList.htm#apex_Metadata_PlatformActionList_clone)**  
    Makes a duplicate copy of the Metadata.PlatformActionList.

### clone()

Makes a duplicate copy of the Metadata.PlatformActionList.

#### Signature

public Object clone()

#### Return Value

Type: Object