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 these enriched fields: the External_Account_ID__c custom field, BillingAddress, and Industry. The changedFields field indicates which fields changed. In this example, only the Fax field and the LastModifiedDate system field changed, but the field values for External_Account_ID__c, BillingAddress, and Industry are also included because they’re enriched fields.
1{
2 "data": {
3 "schema": "WsFvMM5T4XghRnIzNnyzBw",
4 "payload": {
5 "LastModifiedDate": "2022-05-11T16:20:59.000Z",
6 "External_Account_ID__c": "1ABC",
7 "BillingAddress": {
8 "State": "CA",
9 "Street": "415 Mission Street",
10 "PostalCode": "94105",
11 "Country": "USA",
12 "City": "San Francisco"
13 },
14 "Industry": "Biotechnology",
15 "ChangeEventHeader": {
16 "commitNumber": 166350908085,
17 "commitUser": "005RM0000026DG5YAM",
18 "sequenceNumber": 1,
19 "entityName": "Account",
20 "changeType": "UPDATE",
21 "changedFields": [
22 "Fax",
23 "LastModifiedDate"
24 ],
25 "changeOrigin": "com/salesforce/api/soap/55.0;client=SfdcInternalAPI/",
26 "transactionKey": "000f07d5-d33e-8607-991e-ad2c1fda0750",
27 "commitTimestamp": 1652286060000,
28 "recordIds": [
29 "001RM000005a9tGYAQ"
30 ]
31 },
32 "Fax": "4155551212"
33 },
34 "event": {
35 "replayId": 32859
36 }
37 },
38 "channel": "/data/SalesEvents__chn"
39}A change event message for a delete operation includes the non-empty enriched fields, External_Account_ID__c, BillingAddress, and Industry, but no other record fields.
1{
2 "data": {
3 "schema": "WsFvMM5T4XghRnIzNnyzBw",
4 "payload": {
5 "External_Account_ID__c": "1ABC",
6 "BillingAddress": {
7 "State": "CA",
8 "Street": "415 Mission Street",
9 "PostalCode": "94105",
10 "Country": "USA",
11 "City": "San Francisco"
12 },
13 "Industry": "Biotechnology",
14 "ChangeEventHeader": {
15 "commitNumber": 166350939842,
16 "commitUser": "005RM0000026DG5YAM",
17 "sequenceNumber": 1,
18 "entityName": "Account",
19 "changeType": "DELETE",
20 "changedFields": [
21 ],
22 "changeOrigin": "com/salesforce/api/soap/55.0;client=SfdcInternalAPI/",
23 "transactionKey": "000f07e4-5ffc-c709-e671-62dadb2eebcc",
24 "commitTimestamp": 1652286136000,
25 "recordIds": [
26 "001RM000005a9tGYAQ"
27 ]
28 }
29 },
30 "event": {
31 "replayId": 32860
32 }
33 },
34 "channel": "/data/SalesEvents__chn"
35}