Back to Collection Items
var
begin
http.AuthToken := '<access_token>';success := http.QuickGetSb('https://domain.com/services/data/v{{version}}/ui-api/actions/global',sbResponseBody.ControlInterface);jResp.LoadSb(sbResponseBody.ControlInterface);jResp.EmitCompact := 0;jResp.I := i;actionListContext := jResp.StringOf('actions.Global.actions[i].actionListContext');actionTarget := jResp.StringOf('actions.Global.actions[i].actionTarget');actionTargetType := jResp.StringOf('actions.Global.actions[i].actionTargetType');apiName := jResp.StringOf('actions.Global.actions[i].apiName');externalId := jResp.StringOf('actions.Global.actions[i].externalId');iconUrl := jResp.StringOf('actions.Global.actions[i].iconUrl');id := jResp.StringOf('actions.Global.actions[i].id');isMassAction := jResp.StringOf('actions.Global.actions[i].isMassAction');label := jResp.StringOf('actions.Global.actions[i].label');lwcComponent := jResp.StringOf('actions.Global.actions[i].lwcComponent');primaryColor := jResp.StringOf('actions.Global.actions[i].primaryColor');relatedListRecordId := jResp.StringOf('actions.Global.actions[i].relatedListRecordId');relatedSourceObject := jResp.StringOf('actions.Global.actions[i].relatedSourceObject');section := jResp.StringOf('actions.Global.actions[i].section');sourceObject := jResp.StringOf('actions.Global.actions[i].sourceObject');subtype := jResp.StringOf('actions.Global.actions[i].subtype');targetObject := jResp.StringOf('actions.Global.actions[i].targetObject');targetUrl := jResp.StringOf('actions.Global.actions[i].targetUrl');v_type := jResp.StringOf('actions.Global.actions[i].type');i := i + 1;i := 0;count_i := jResp.SizeOfArray('actions.Global.links');jResp.I := i;i := i + 1;
Curl Command
curl -X GET
-H "Authorization: Bearer <access_token>"
https://domain.com/services/data/v{{version}}/ui-api/actions/global
Postman Collection Item JSON
{
"name": "Get Global Actions",
"event": [
{
"listen": "prerequest",
"script": {
"exec": [
""
],
"type": "text/javascript"
}
}
],
"protocolProfileBehavior": {
"disableBodyPruning": true
},
"request": {
"method": "GET",
"header": [
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{_endpoint}}/services/data/v{{version}}/ui-api/actions/global",
"host": [
"{{_endpoint}}"
],
"path": [
"services",
"data",
"v{{version}}",
"ui-api",
"actions",
"global"
],
"query": [
{
"key": "actionTypes",
"value": "",
"description": "The action type (`CustomButton`, `ProductivityAction`, `QuickAction` or `StandardButton`)",
"disabled": true
},
{
"key": "apiNames",
"value": "",
"description": "The API names of one or more actions to be retrieved. Use this parameter only when passing `retrievalMode=All`.",
"disabled": true
},
{
"key": "formFactor",
"value": "",
"description": "The layout display size (`Large` (default), `Medium` or `Small`).",
"disabled": true
},
{
"key": "retrievalMode",
"value": "",
"description": "When the action context is Record, this parameter indicates which actions to retrieve from the record page. Either `All` or `PageLayout` (default).",
"disabled": true
},
{
"key": "sections",
"value": "",
"description": "The section of the user interface that the actions reside in (`ActivityComposer`, `CollaborateComposer`, `Page` or `SingleActionLinks`).",
"disabled": true
}
]
},
"description": "Get the actions on record detail pages."
},
"response": [
{
"name": "Get Global Actions",
"originalRequest": {
"method": "GET",
"header": [
],
"body": {
"mode": "raw",
"raw": ""
},
"url": {
"raw": "{{_endpoint}}/services/data/v{{version}}/ui-api/actions/global",
"host": [
"{{_endpoint}}"
],
"path": [
"services",
"data",
"v{{version}}",
"ui-api",
"actions",
"global"
],
"query": [
{
"key": "actionTypes",
"value": "",
"description": "The action type (`CustomButton`, `ProductivityAction`, `QuickAction` or `StandardButton`)",
"disabled": true
},
{
"key": "apiNames",
"value": "",
"description": "The API names of one or more actions to be retrieved. Use this parameter only when passing `retrievalMode=All`.",
"disabled": true
},
{
"key": "formFactor",
"value": "",
"description": "The layout display size (`Large` (default), `Medium` or `Small`).",
"disabled": true
},
{
"key": "retrievalMode",
"value": "",
"description": "When the action context is Record, this parameter indicates which actions to retrieve from the record page. Either `All` or `PageLayout` (default).",
"disabled": true
},
{
"key": "sections",
"value": "",
"description": "The section of the user interface that the actions reside in (`ActivityComposer`, `CollaborateComposer`, `Page` or `SingleActionLinks`).",
"disabled": true
}
]
}
},
"status": "OK",
"code": 200,
"_postman_previewlanguage": "json",
"header": [
{
"key": "Date",
"value": "Fri, 06 Oct 2023 10:14:55 GMT"
},
{
"key": "Strict-Transport-Security",
"value": "max-age=63072000; includeSubDomains"
},
{
"key": "X-Content-Type-Options",
"value": "nosniff"
},
{
"key": "X-Robots-Tag",
"value": "none"
},
{
"key": "Cache-Control",
"value": "no-cache,must-revalidate,max-age=0,no-store,private"
},
{
"key": "ETag",
"value": "\"96082978ff1803b51fcee9ce34121cfa--gzip\""
},
{
"key": "Content-Type",
"value": "application/json;charset=UTF-8"
},
{
"key": "Vary",
"value": "Accept-Encoding"
},
{
"key": "Content-Encoding",
"value": "gzip"
},
{
"key": "Transfer-Encoding",
"value": "chunked"
}
],
"cookie": [
],
"body": "{\n \"actions\": {\n \"Global\": {\n \"actions\": [\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": null,\n \"actionTargetType\": null,\n \"apiName\": \"FeedItem.TextPost\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:FeedItem.TextPost\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/share_post_120.png\",\n \"id\": \"0JV4H0000279052WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"Post\",\n \"lwcComponent\": null,\n \"primaryColor\": \"1B96FF\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"CollaborateComposer\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Post\",\n \"targetObject\": null,\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": null,\n \"actionTargetType\": null,\n \"apiName\": \"FeedItem.ContentPost\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:FeedItem.ContentPost\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/share_file_120.png\",\n \"id\": \"0JV4H0000279053WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"File\",\n \"lwcComponent\": null,\n \"primaryColor\": \"939393\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": null,\n \"sourceObject\": \"Global\",\n \"subtype\": \"Post\",\n \"targetObject\": null,\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/NewEvent/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.NewEvent\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2j\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_event_120.png\",\n \"id\": \"0JV4H0000279054WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Event\",\n \"lwcComponent\": null,\n \"primaryColor\": \"FF538A\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"ActivityComposer\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Event\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/NewTask/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.NewTask\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2f\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_task_120.png\",\n \"id\": \"0JV4H0000279055WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Task\",\n \"lwcComponent\": null,\n \"primaryColor\": \"3BA755\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"ActivityComposer\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Task\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/NewContact/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.NewContact\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2k\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_contact_120.png\",\n \"id\": \"0JV4H0000279056WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Contact\",\n \"lwcComponent\": null,\n \"primaryColor\": \"5867E8\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"Page\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Contact\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/LogACall/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.LogACall\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2g\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/log_a_call_120.png\",\n \"id\": \"0JV4H0000279057WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"Log a Call\",\n \"lwcComponent\": null,\n \"primaryColor\": \"06A59A\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"ActivityComposer\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"LogACall\",\n \"targetObject\": \"Task\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/NewOpportunity/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.NewOpportunity\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2l\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_opportunity_120.png\",\n \"id\": \"0JV4H0000279058WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Opportunity\",\n \"lwcComponent\": null,\n \"primaryColor\": \"FF5D2D\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"Page\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Opportunity\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/NewCase/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.NewCase\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2h\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_case_120.png\",\n \"id\": \"0JV4H0000279059WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Case\",\n \"lwcComponent\": null,\n \"primaryColor\": \"FF5D2D\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"Page\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Case\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/NewLead/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.NewLead\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002PE2m\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_lead_120.png\",\n \"id\": \"0JV4H0000279060WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Lead\",\n \"lwcComponent\": null,\n \"primaryColor\": \"FF5D2D\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"Page\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Lead\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": null,\n \"actionTargetType\": null,\n \"apiName\": \"FeedItem.LinkPost\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:FeedItem.LinkPost\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/share_link_120.png\",\n \"id\": \"0JV4H0000279061WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"Link\",\n \"lwcComponent\": null,\n \"primaryColor\": \"1B96FF\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": null,\n \"sourceObject\": \"Global\",\n \"subtype\": \"Post\",\n \"targetObject\": null,\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": null,\n \"actionTargetType\": null,\n \"apiName\": \"FeedItem.PollPost\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:FeedItem.PollPost\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/share_poll_120.png\",\n \"id\": \"0JV4H0000279062WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"Poll\",\n \"lwcComponent\": null,\n \"primaryColor\": \"1B96FF\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"CollaborateComposer\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Post\",\n \"targetObject\": null,\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": null,\n \"actionTargetType\": null,\n \"apiName\": \"FeedItem.QuestionPost\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:FeedItem.QuestionPost\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/question_post_action_120.png\",\n \"id\": \"0JV4H0000279063WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"Question\",\n \"lwcComponent\": null,\n \"primaryColor\": \"3BA755\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"CollaborateComposer\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Post\",\n \"targetObject\": null,\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n },\n {\n \"actionListContext\": \"Global\",\n \"actionTarget\": \"/services/data/v58.0/quickActions/New_Detailed_Account/describe\",\n \"actionTargetType\": \"Describe\",\n \"apiName\": \"Global.New_Detailed_Account\",\n \"externalId\": \"00D58000000arpq:Global::Global:Desktop:09D58000002Pbt9\",\n \"iconUrl\": \"https://pozil-dev-ed.my.salesforce.com/img/icon/t4v35/action/new_account_120.png\",\n \"id\": \"0JV4H0000279064WAA\",\n \"isMassAction\": \"false\",\n \"label\": \"New Detailed Account\",\n \"lwcComponent\": null,\n \"primaryColor\": \"5867E8\",\n \"relatedListRecordId\": null,\n \"relatedSourceObject\": null,\n \"section\": \"Page\",\n \"sourceObject\": \"Global\",\n \"subtype\": \"Create\",\n \"targetObject\": \"Account\",\n \"targetUrl\": null,\n \"type\": \"QuickAction\"\n }\n ],\n \"links\": [],\n \"url\": \"/services/data/v58.0/ui-api/actions/global\"\n }\n },\n \"eTag\": \"96082978ff1803b51fcee9ce34121cfa\",\n \"url\": \"/services/data/v58.0/ui-api/actions/global\"\n}"
}
]
}