Saturday, February 1, 2025

Salesforce Integration Interview Questions Change Data Capture Part-6

 1) What is Change Data Capture (CDC)?

Change Data Capture is a streaming product in Salesforce that enables real-time integration with external systems. It notifies subscribed systems of data changes like record creation, updates, deletions, and undeletions, helping keep external systems in sync without periodic data exports or repeated API calls.

2) What types of objects support CDC?

CDC is available for all custom objects and a subset of standard objects. Each object has an associated ChangeEvent object, named <ObjectName>ChangeEvent for standard objects and <ObjectName>__ChangeEvent for custom objects.

3) Can CDC events be queried or modified?

No, ChangeEvent objects don’t support CRUD operations or queries. They are used to capture and publish changes but cannot be directly manipulated.

4) How does CDC handle security for fields in change events?

CDC respects field-level security, delivering only the fields a user has access to. However, it ignores record-level sharing settings and doesn’t include derived fields (e.g., formula fields) except for roll-up summary fields.

5) What fields are excluded in CDC event messages?

Excluded fields include:

  • IsDeleted
  • SystemModStamp
  • Formulae Fields (except roll-up summary fields).

6) What are the steps to enable Change Data Capture?

  1. Navigate to Setup > Change Data Capture in Salesforce.
  2. Select the desired custom and standard objects from the Available Entities list.
  3. You can enable up to five entities by default. For more, purchase an add-on license.
  4. Save the settings.

7) Provide an example of subscribing to CDC events using the Workbench.

  1. Open Workbench > Queries > Streaming Push Topics.
  2. Click Generic Subscriptions and enter /Data/AccountChangeEvent.
  3. Click Subscribe to establish the connection.

Updates to the Account record will trigger notifications visible in the Workbench.

8) What happens if you need different subscribers to receive specific event types?

Use custom channels to group and isolate change events for different subscribers. This ensures that each subscriber receives only the events they need.

9) What are the licensing constraints for CDC?

  • Default: Up to 5 entities.
  • Add-on license: Select up to 10 entities per channel and increase delivery allocations. After selecting the first 10 entities, you can add more.

Gain a deep understanding of Salesforce integration, from creating and configuring Connected Apps to mastering advanced topics like OAuth flows, SAML-based Single Sign-On, and Streaming APIs. Our PDF course combines practical examples, real-time scenarios, and integration patterns to equip professionals with the skills needed to streamline processes and enhance productivity. Tailored for those with 2–8 years of experience, it’s your guide to unlocking seamless connectivity between Salesforce and other systems.

Link to course : Mastering Salesforce Integration

No comments:

Post a Comment