SK SKYVVA Documentation

5. How to Use Platform Events to Publish Salesforce Events via Skyvva V4/Integrate?

Introduction

Prerequisite

To effectively create Platform Events, Custom Objects, and Triggers using the SKYVVA integration application, several prerequisites and steps must be followed.

By following these steps and prerequisites, the user can successfully create a robust integration using the SKYVVA integration application.

      Platform Events

      Integration

Steps:

Users can copy Trigger

trigger trgPlatformAccountEvent1 on skyvvasolutions__Platform_Event_Account__e (after insert) { List <Account> lst = new List<Account>(); for(skyvvasolutions__Platform_Event_Account__e evt: Trigger.New){ Account acc = new Account(); acc.Name = evt.skyvvasolutions__Name__c + 'Event'; acc.AccountNumber = evt.skyvvasolutions__AccountNumber__c + 'Event'; lst.add(acc); } insert lst; }

Go to Setup -> Find Custom Settings

Platform event Inbound

In this scenario, we create an inbound integration/interface for a Salesforce platform event named Platform_Event_Account_e. This platform event is used to facilitate real-time data communication within and between Salesforce applications and external systems using the SKYVVA integration application. The integration is designed to operate as a public Salesforce event and follows an event-driven architecture to ensure timely and efficient data processing.

Source/target Name: select Platform Event Here platform event name is Platform_Event_Account_e

[su_box title="Result:" box_color="#2a8af0" title_color="#000000"]Update a record in Salesforce using a platform event via the SKYVVA integration application. This process guarantees real-time synchronization and precise data updates within Salesforce.[/su_box]

Summary

Now user learned that How To use the streaming API with platform events in the SKYVVA integration application V4, configure the integration service, subscribe to platform events, and handle event messages via the streaming API for real-time updates.

Open this article in the interactive viewer →