Newer Version Available
Change Event Body Fields
The body of a change event message includes the fields and values for the corresponding
Salesforce record.
JSON Change Event Messages
The fields that Salesforce includes in a JSON event message that a CometD client receives depend on the operation performed.
- Create
- For a new record, the event message body includes all non-empty fields and system fields, such as the CreatedDate and OwnerId fields.
- Update
- For an updated record, the body includes only the changed fields. It includes empty fields only if they are updated to an empty value (null). It also includes the LastModifiedDate system field. The body includes the LastModifiedById field only if it has changed—if the user who modified the record is different than the previous user who saved it.
- Delete
- For a deleted record, the body doesn’t include any fields or system fields.
- Undelete
- For an undeleted record, the body includes all non-empty fields from the original record, in addition to system fields.