---
schema_version: "1"
id: 2dd0cb0c534ef7980c843d3dc52c5974f44a5654ffecc7ba831c62e61c7ddf28
title: QuickActionListItem
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_tooling/tooling_api_objects_quickactionlistitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_quickactionlistitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: d2c519e9f03ce2625ff55eddf5f91801b5636ca9f639e0634c845b65c999ddfb
description: Represents an item in a quick action list.
---
# QuickActionListItem

Represents an item in a quick action list.

This object is available in API version 32.0 and later.

## Supported SOAP Calls

create(), delete(), query(), retrieve(), update(), upsert()

## Supported REST HTTP Methods

DELETE, GET, PATCH, POST

## Fields

| Field | Details |
| --- | --- |
| QuickActionDefinition | 
Type

picklist

Properties

Create, Filter, Group, Restricted picklist, Sort, Update

Description

The enum name or ID of the QuickActionDefinition that’s associated with this list item. Valid values are:

- Case.ChangeStatus
- Case.LogACall
- FeedItem.ContentPost
- FeedItem.LinkPost
- FeedItem.MobileSmartActions
- FeedItem.PollPost
- FeedItem.QuestionPost
- FeedItem.TextPost





 |
| QuickActionListId | 

Type

reference

Properties

Create, Filter, Group, Sort

Description

The ID of the QuickActionList associated with this list item.



 |
| SortOrder | 

Type

int

Properties

Create, Filter, Group, Sort, Update

Description

The order in which this list item appears in the picklist. This field must be an ordinal number greater than 0, and must be unique in the list.



 |

## Usage

A QuickActionListItem associates a QuickActionDefinition with a QuickActionList. You can query to find out which quick actions are in a list, insert or delete to add or remove quick actions from a list, and update to change the order of quick actions in the list.

The following example reverses the order in the list of the actions, and then removes the first action from the list.

String query = "SELECT Id,SortOrder FROM QuickActionListItem Where QuickActionListId='" + listId + "'"
SObject\[\] records = sforce.query(query).getRecords();

for(int i=0;i<records.length;i++) {
   QuickActionListItem item = (QuickActionListItem)records\[i\];
   item.setSortOrder(records.length-i);
}

sforce.update(records);

// Last record in array is first record in reordered list
sforce.delete(records\[records.length-1\].getId());