How to listen to Salesforce Platform Events from MuleSoft?

How to listen to Salesforce Platform Events from MuleSoft?

Platform Event in Salesforce:




Sample Flow:




Replay Channel:




Transform Message:




Logger:




Code to execute in Developer Console:


Below code is used to create an event record so that MuleSoft can get notified.


  1. Sample__e objEvent = new Sample__e( Status__c = ‘Testing’ );  
  2. EventBus.publish( objEvent );  



Output:


Leave a Reply