Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

Record Alert Collection Map

Output representation of the bulk record alerts request.
JSON example
1{
2  "hasErrors": true,
3  "results": {
4    "001RO000003KPW0YAO": {
5      "recordAlertErrors": [
6        {}
7      ],
8      "recordAlerts": [
9        {
10          "actions": {
11            "actionInfoCollection": [
12              {
13                "actionName": "snooze",
14                "parameters": [
15                  "snoozeUntilDate"
16                ]
17              },
18              {
19                "actionName": "dismiss",
20                "parameters": []
21              }
22            ]
23          },
24          "active": true,
25          "description": "Alert Description",
26          "effectiveDate": "2022-03-10T20:00:00.000Z",
27          "id": "0qZRO000000008o",
28          "severity": "Error",
29          "snoozeUntilDate": "2022-03-12T19:09:06.000Z",
30          "source": "Internal",
31          "subject": "Alert Subject",
32          "validUntilDate": "2022-03-30T19:00:00.000Z",
33          "whatId": "001RO000003KPW0"
34        }
35      ],
36      "status": "SUCCESS"
37    },
38    "001RO000003NJJrYAO": {
39      "recordAlertErrors": [
40        {
41          "errorCode": "Apex_Execution_Error",
42          "errorMessage": "Insufficient access to record"
43        }
44      ],
45      "recordAlerts": [
46        {
47          "actions": {
48            "actionInfoCollection": [
49              {
50                "actionName": "snooze",
51                "parameters": [
52                  "snoozeUntilDate"
53                ]
54              },
55              {
56                "actionName": "dismiss",
57                "parameters": []
58              }
59            ]
60          },
61          "active": true,
62          "description": "Alert Description",
63          "effectiveDate": "2022-03-08T20:00:00.000Z",
64          "id": "0qZRO00000000BO",
65          "severity": "Info",
66          "snoozeUntilDate": "2022-03-21T15:26:45.000Z",
67          "source": "Internal",
68          "subject": "Alert Subject",
69          "validUntilDate": "2022-03-31T19:00:00.000Z",
70          "whatId": "001RO000003NJJr"
71        }
72      ]
73    },
74    "status": "PARTIAL_SUCCESS"
75  }
76}
Property Name Type Description Filter Group and Version Available Version
hasErrors Boolean Indicates whether at least one of the results in the result set contains an error (true) or not (false). Small, 55.0 55.0
results Map<String, Record Alert Collection> Represents the collection of record alerts. Small, 55.0 55.0