Newer Version Available
Get MRU List View Actions
- Resource
-
1/ui-api/actions/mru-list/${objectApiNames}objectApiNames—An object name, or a comma-delimited list of object names.
- Available version
- 41.0
- HTTP methods
- GET
- Example
-
As an example, let’s say we have a most recently used Accounts list view. To get information about the header actions on this list view, make this request:
1GET /services/data/v41.0/ui-api/actions/mru-list/AccountThe request returns a list of header actions on the list view and the URLs of the request and subrequests.
1{ 2 "actions" : { 3 "Account" : { 4 "actions" : [ { 5 "actionListContext" : "MruList", 6 "actionTarget" : null, 7 "actionTargetType" : "Invoke", 8 "apiName" : "New", 9 "externalId" : "00DR00000008n7M:Account::MruList:Phone:StandardButton:New", 10 "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/new_120.png", 11 "id" : "0JVR00000000102OAA", 12 "isMassAction" : "false", 13 "label" : "New", 14 "primaryColor" : "33BCE7", 15 "relatedListRecordId" : null, 16 "relatedSourceObject" : null, 17 "section" : "Page", 18 "sourceObject" : "Account", 19 "subtype" : null, 20 "targetObject" : "Account", 21 "targetUrl" : null, 22 "type" : "StandardButton" 23 }, { 24 "actionListContext" : "MruList", 25 "actionTarget" : null, 26 "actionTargetType" : null, 27 "apiName" : "MruListSort", 28 "externalId" : "00DR00000008n7M:Account::MruList:Phone:StandardButton:MruListSort", 29 "iconUrl" : "https://yourInstance.salesforce.com/img/icon/t4v35/action/sort_120.png", 30 "id" : "0JVR00000000103OAA", 31 "isMassAction" : "false", 32 "label" : "Sort", 33 "primaryColor" : "FAB9A5", 34 "relatedListRecordId" : null, 35 "relatedSourceObject" : null, 36 "section" : "Page", 37 "sourceObject" : "Account", 38 "subtype" : null, 39 "targetObject" : "Account", 40 "targetUrl" : null, 41 "type" : "StandardButton" 42 } 43 44... Additional actions removed for brevity ... 45 46], 47 "links" : [ ], 48 "url" : "/services/data/v41.0/ui-api/actions/mru-list/Account" 49 } 50 }, 51 "url" : "/services/data/v41.0/ui-api/actions/mru-list/Account" 52} - Request parameters for GET
-
Parameter Name Type Description Required or Optional Available Version actionTypes String[] The action type. One of these values:- CustomButton—A button that opens a URL or Visualforce page or executes JavaScript.
- ProductivityAction—A pre-defined Salesforce action, attached to a limited set of objects.
- QuickAction—A global or object-specific action.
- StandardButton—A pre-defined Salesforce button, such as New, Edit, and Delete.
Optional 41.0 formFactor String The layout display size. One of these values: - Large—(Default) Use this value to get a layout for desktop display size.
- Medium—Use this value to get a layout for tablet display size.
- Small—Use this value to get a layout for phone display size.
Optional 41.0 sections String[] The section of the user interface that the action resides in. One of these values:- ActivityComposer
- CollaborateComposer
- Page
- SingleActionLinks
Optional 41.0 - Response body for GET
- ActionRepresentation