SK SKYVVA Documentation

1. How to publish platform event using the inbound interface?

Learning Objectives:-

This unit describes:-

Introduction:-

How to Publish Platform event using Inbound interface?

Steps are given below:-

1. Create a Platform event:-

*The pictures are given below for a reference which covers all the above points:-

2. Create Custom Fields:-

*Repeat the same process to create the AccountNumber field.

3. Create Trigger:

[aux_code language="javascript" theme="tomorrow" title="" extra_classes=""] trigger trgPlatformAccountEvent on Platform_Event__e (after insert) { List lst = new List(); for(Platform_Event__e evt: Trigger.New) { Account acc = new Account(); acc.Name = evt.Name__c + 'evt' ; acc.AccountNumber = evt.AccountNumber__c + 'evt' ; lst.add(acc); } insert lst; } [/aux_code]

4. Create Integration:-

5. Create Interface:-

6. Upload data Manually:-

7. Check the result in Message Monitoring:-

Open this article in the interactive viewer →