Newer Version Available
Example: Delivered Enriched Event Messages
Check out example event messages that contain enriched fields for update and delete
operations.
This change event for an account update includes two enriched fields, Industry and the External_Account_ID__c custom field. The changedFields field indicates which fields changed. In this example, only the Fax field and the LastModifiedDate system field changed.
1{
2 "schema": "I8b-dYxvxs5wOtCBr4qsew",
3 "payload": {
4 "LastModifiedDate": "2020-12-15T23:09:18.000Z",
5 "Industry": "Biotechnology",
6 "External_Account_ID__c": "1ABC",
7 "Fax": "4155551212",
8 "ChangeEventHeader": {
9 "commitNumber": 74487681550,
10 "commitUser": "005RM000001hv4SYAQ",
11 "sequenceNumber": 1,
12 "entityName": "Account",
13 "changeType": "UPDATE",
14 "changedFields": [
15 "Fax",
16 "LastModifiedDate"
17 ],
18 "changeOrigin": "com/salesforce/api/soap/51.0;client=SfdcInternalAPI/",
19 "transactionKey": "0005e192-9e62-2554-3880-3c3718bd6308",
20 "commitTimestamp": 1608073758000,
21 "recordIds": [
22 "001RM000004UF9sYAG"
23 ]
24 }
25 },
26 "event": {
27 "replayId": 12
28 }
29}A change event message for a delete operation includes the non-empty enriched fields, Industry and External_Account_ID__c, but no other record fields.
1{
2 "schema": "I8b-dYxvxs5wOtCBr4qsew",
3 "payload": {
4 "Industry": "Biotechnology",
5 "External_Account_ID__c": "1ABC",
6 "ChangeEventHeader": {
7 "commitNumber": 74488073004,
8 "commitUser": "005RM000001hv4SYAQ",
9 "sequenceNumber": 1,
10 "entityName": "Account",
11 "changeType": "DELETE",
12 "changedFields": [],
13 "changeOrigin": "com/salesforce/api/soap/51.0;client=SfdcInternalAPI/",
14 "transactionKey": "0005e1af-70bd-cce1-59c2-00f45864bbfb",
15 "commitTimestamp": 1608073975000,
16 "recordIds": [
17 "001RM000004UF9sYAG"
18 ]
19 }
20 },
21 "event": {
22 "replayId": 13
23 }
24}