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());