---
schema_version: "1"
id: e41b6b5ebc1ea56f0751a57a55fcb319ca9a798beaadb1ac3987642b78ad7868
title: PlatformActionListItem Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_Metadata_PlatformActionListItem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d36f7b3dbb14404819e7a6b14bf4d8550e3cbbb57a7a25208b947795e02c8b3d
description: Represents an action in the platform action list for a layout.The API name for the action in the list.The type of action.The placement of the action in the list.The subtype of the action.Makes a duplicate copy of the Metadata.PlatformActionListItem.
---
# PlatformActionListItem Class

Represents an action in the platform action list for a 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 “PlatformActionListItem” in the [Metadata API Developer Guide](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_intro.htm).

- **[PlatformActionListItem Properties](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_Metadata_PlatformActionListItem_properties)**
- **[PlatformActionListItem Methods](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_Metadata_PlatformActionListItem_methods)**

## PlatformActionListItem Properties

The following are properties for PlatformActionListItem.

- **[actionName](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_Metadata_PlatformActionListItem_actionName)**  
    The API name for the action in the list.
- **[actionType](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_Metadata_PlatformActionListItem_actionType)**  
    The type of action.
- **[sortOrder](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_Metadata_PlatformActionListItem_sortOrder)**  
    The placement of the action in the list.
- **[subtype](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_Metadata_PlatformActionListItem.htm#apex_Metadata_PlatformActionListItem_subtype)**  
    The subtype of the action.

### actionName

The API name for the action in the list.

#### Signature

public String actionName {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.")

### actionType

The type of action.

#### Signature

public Metadata.PlatformActionTypeEnum actionType {get; set;}

#### Property Value

Type: [Metadata.PlatformActionTypeEnum](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_Metadata_PlatformActionTypeEnum.htm#apex_enum_Metadata_PlatformActionTypeEnum "The type of action for a PlatformActionListItem.")

### sortOrder

The placement of the action in the list.

#### Signature

public Integer sortOrder {get; set;}

#### Property Value

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

### subtype

The subtype of the action.

#### Signature

public String subtype {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.")

## PlatformActionListItem Methods

The following are methods for PlatformActionListItem.

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

### clone()

Makes a duplicate copy of the Metadata.PlatformActionListItem.

#### Signature

public Object clone()

#### Return Value

Type: Object