QuickActionListItem
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 |
|
QuickActionListId |
|
SortOrder |
|
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());