Change Events for Person Accounts

Because a person account record combines fields from an account and a contact, changing a person account results in two change events: one for the account and one for the contact, provided that both objects are selected for change data capture. The two change events are generated for all changes to a person account, including create, update, delete, and undelete operations.

To receive change events for person account records, enable both Account and Contact for change data capture. If only Account is selected and a person account is updated, the account change event doesn’t contain the fields that stem from the contact. Examples of such fields are PersonAssistantName, which corresponds to the contact AssistantName field, or a contact custom field. This behavior doesn’t apply when creating or undeleting a person account—the account change event contains the contact fields even if Contact isn’t selected for capture.

Note

  • Creating and Undeleting a Person Account

    When creating or undeleting a person account, the account change event contains both account and contact fields. It contains account record fields and some fields from the contact record. The contact fields that the account change event includes are all custom contact fields and some standard contact fields, which start with the Person prefix.

  • Updating a Person Account

    When updating a person account, two change events are generated, one for the account and one for the contact, regardless which fields changed. Salesforce always updates the LastModifiedDate system field in both the account and contact even if the field updated is only in one of the underlying records.

  • Converting an Account

    If a person account is converted to a business account through the API by modifying the record type ID, a change event for the account is generated. This change event contains the new record type ID of the account.

  • Deleting a Person Account

    When deleting a person account, two change events are generated: one for the deleted account and one for the deleted contact. The change events don’t contain record fields. They contain only event header fields.

See Also