SK SKYVVA Documentation

2. How to use Streaming API with CDC Event?

Introduction

The Streaming API in Salesforce provides a powerful mechanism for real-time data updates, enabling applications to subscribe to changes in Salesforce data. This API includes two key event types:

SKYVVA Agent Control Board is a robust integration tool that facilitates the use of these streaming APIs. It enables users to configure and manage CDC events seamlessly. By leveraging the SKYVVA platform, users can set up flows to handle real-time data updates and automate integration processes. The Agent Control Board simplifies the configuration of streaming events, ensuring that data integration is both efficient and effective.

Integrating a streaming API with Change Data Capture (CDC) events using the Agent SKYVVA integration application can significantly enhance real-time data processing and synchronization across various systems. This guide aims to provide a comprehensive introduction to this process, facilitating a seamless integration experience.

The Role of Agent Skyvva Integration Application

Agent SKYVVA is an advanced integration platform designed to simplify and automate the process of data synchronization across multiple systems. With its robust capabilities, it provides a seamless interface to connect and manage various data sources, including those using CDC events and streaming APIs.

Prerequisites

  1. Setup Agent Skyvva Integration Application
  1. Enable Change Data Capture in Salesforce
  1. Integrate with Agent Skyvva
  1. Monitoring

By following these steps, you can effectively use the Streaming API with CDC events in conjunction with the Agent SKYVVA integration application, ensuring real-time data synchronization between Salesforce and your external systems.

Expectation:

In this scenario, CDC (Change Data Capture) events are used to send all changed data as events to the Agent automatically. To configure CDC events, set the flag and select the corresponding xxxChangeEvent object in the interface's 'Source/Target' field—such as AccountChangeEvent, LeadChangeEvent, OpportunityChangeEvent, and so on. In the message type, specify the external message type. Then, map the sObject fields to the external message type. Whenever a user changes, inserts, deletes, or undeletes data, an event is created and sent to the Agent, containing all the changed fields. The Agent checks the mapping, transforms the event data into the external structure, and raises an error if no mapping is available, logging it using the Agent Skyvva integration application.

Step:

Outbound Interface

To create an outbound interface in the SKYVVA integration application, navigate to the Integration tab, then click on the Interface tab and select the New Interface button. Set the interface type to "Event-Interface" and ensure that the source name contains "ChangeEvent," such as "AccountChangeEvent." Complete the configuration according to your specific integration requirements. This setup will enable the outbound interface to handle change events using the Skyvva integration application.

Interface type: “Event-Interface

Go to New Agent Control Board

[su_box title="Result:" box_color="#2a8af0" title_color="#000000"]After updating a record in Salesforce, the change will be reflected in your external system via CDC (Change Data Capture) Events. This process guarantees real-time synchronization and precise data updates within Salesforce.[/su_box]

Summary

Now the user has learned to use the Streaming API with CDC Events in Salesforce using Agent Control Board SKYVVA. This involves creating and configuring CDC Events, setting up the integration flow, and activating it to enable real-time data updates and synchronization.

Open this article in the interactive viewer →