SK SKYVVA Documentation

1. Change Data Control (CDC)

What is Change Data Control?

Change Data control is a function that provided to record all data changes (Change Pointer) you create on any business object. It is capable to send the deleted records to the receiver as well. This means it executes the find/fetch record base on Salesforce’s query. With the SOQL query statement, you can fetch the deleted records in the recycle bin as well with the “ALL ROWS” keyword. Overall, it handles the change data in salesforce. You can send all your change data using CDC Scheduler or manually.

CDC Setting

This section is created for some fields that use CDC features. Before configuring the CDC you need to know about these parameters which require to set on the interface.

[su_box title="Note" box_color="#2a8af0" title_color="#000000"]CDD Scheduler LastRun is obsolete now. No need to check this flag for defining the change data anymore. The Interface Control Runtimes for the Last Run Date is created automatically by the CDD scheduler. [/su_box]

When to use Change Data Control?

Use Change Data Control to:

CDC is made up of two components, the CDD, and the CDT. These two-component have different functionality.

CDC Component

Description

CDD CDD stand for Change Data Detection.

CDT CDT stands for Change Data Transfer.

Change Data Detection With CDD, you can detect all the changed data in Salesforce to any external system. CDD is a scheduler that is running to call batch Apex in order to collect data change and save all those data into the Change Pointer table. Change Data Transfer CDT is another scheduler that is running to collect the records from the Change Pointer Object and sent to the external System such as SAP… etc. The Schedule will execute callout as the parallel of future, queueable, batch based on priority, integration resource and interface group type (EO/EOIO).

The configuration of the CDC

Step 1: Create an outbound adapter An outbound interface can be processed with the different adapters to configure CDC. For example, we use SFDC2SAPPI adapter, Rest Adapter, Soap adapter. Follow the given step to process the outbound interface using the adapter. We are using SFDC2SAPPI adapter as an example, you can follow the given steps:

Step 2: Create a Remote Site

[su_box title="Note" box_color="#2a8af0" title_color="#000000"]Remote Site URLPaste the same link as in the Property Value that you have just created a moment ago.[/su_box]

Step 3: Create an outbound Interface In order to configure the CDC for an Interface, you have to create an interface.

Step 4: Schedule CDD and Monitor it on CDC Control Board After you have done configuring the CDC processing you have to set the scheduler for CDD in order to collect the change data (CP records). To schedule CDD, follow the given steps:

Step 5: Schedule CDT and monitor it on Apex Job After collecting all the change pointer records you can transfer those records out by using the CDT scheduler. To schedule CDT, just follow some steps below:

Step 6: Check the result on Message Monitoring Board

Open this article in the interactive viewer →