Publish a Platform Event Using Process Builder

Process Builder Salesforce Configuration: 

Platform events are part of Salesforce’s enterprise messaging platform. The platform supplies an event-driven messaging architecture to enable apps to communicate inside and outside Salesforce. A platform event has been defined in our Salesforce org. We can publish event messages from a Salesforce app using processes, flows, Apex, or an external app using Salesforce APIs. Publishers and Subscribers communicate with each other through events. More subscribers can listen to the same event and carry out actions. 

Steps to Implement the Platform Event Using Process Builder

Use Case: 

Whenever an Opportunity record’s stage field value changes from any of the stages to Closed Won, then we need to send the piece of Information from Salesforce to an external Platform. 

Create a Platform Event Label Name as Order Event  

Set Event Type as” a High Volume” 

Set Publish Behavior like “Publish After Commit” 

Set Deployment status as “Deployed”

Image download failed.

Platform events can be created like custom objects. The key difference between these two interfaces is there are no Record Types, Page layouts. The API Name of the Platform events ends with __e and “e” stands for Events. 


In the Platform Event, we are going to create three fields. When the Opportunity stage is changed from any stage to Closed Won. we are sending out the Opportunity Id, Amount, Account Id. These three pieces of Information are sent from Salesforce to External platform

Image download failed.


Configure the Process Builder, and select the Process that starts when A record changes 

Image download failed.


Configure the criteria like Opportunity stage has been changed from any of the stages to Closed Won  


Select the Immediate action as “Create Record” and call the Platform Event like “Order Event” in the Record Type section and map the OpportunityId, Amount, AccountId from the Opportunity. 


Change the stage from Proposal/Price Quote to Closed Won. 

Image download failed.


The Order Event is triggered successfully, and the opportunity Id, Account Id, Amount values from Salesforce are sent to the External Application. 


The Platform Event (Order Event) is triggered successfully from Process Builder to send the data to an external application.  


About MST

At MST Solutions our cornerstone is to adapt, engage and create solutions which guarantee the success of our clients. The talent of our team and experiences in varied business verticals gives us an advantage over other competitors.

Recent Articles

Field Trip App

Introduction:  Field Trip App helps the Salesforce users to calculate the custom field’s health. It can be used to run the inbuilt report on objects

Read Article »

Work with us.

Our people aren’t just employees, they are key to the success of our business. We recognize the strengths of each individual and allow them time and resources to further develop those skills, crafting a culture of leaders who are passionate about where they are going within our organization.