
What are the different platforms in Salesforce?
With that, here are the tools you can use to build apps on Lightning Platform:
- Salesforce Environments. A secure and isolated development environment for developers and admins to test ideas, accelerate app development, and customize the platform. ...
- Heroku. It lets you extend Salesforce by building engaging experiences through custom apps. ...
- mySalesforce. ...
- myEinstein. ...
- Salesforce App Cloud. ...
How to subscribe to Salesforce platform event?
Subscribe Channel Listener. Step 1: Add Salesforce Subscribe channel listener and configure as shown below: Step 2: Log the actual platform event which will be in the Object format like below: The sample event would look like: Step 3: Now add Transform message to extract the event message that is encapsulated in the above Object.
How to create your first app in Salesforce?
- To create application in lightning, Click File | New | Lightning Application.
- Enter the name, and click Ok. E.g. appName.app resource. You may set name accordingly.
- Now use c:helloWorld to refer the component helloWorld.cmp using the default namespace c. If your organization has a registered namespace, you can use it to reference. ...
What is a platform event?
Platform events are the event messages that your apps send and receive. They simplify the process of communicating changes and responding to them without requiring you to write complex logic. Publishers and subscribers communicate with each other through platform events. One or more subscribers can listen to the same event and carry out actions.

What is platform in event?
Platform events are secure and scalable messages that contain data. Publishers publish event messages that subscribers receive in real time. To customize the data published, define platform event fields.
What is platform events in Salesforce process builder?
Processes built in Process Builder can subscribe to platform events and receive event messages published through Apex, APIs, flows, and other processes. Processes provide an autosubscription mechanism. To subscribe a process to a platform event, build the process to start when it receives a platform event message.
Where are platform events in Salesforce?
View Event Subscribers From Setup, enter Platform Events in the Quick Find box, then select Platform Events. Click your event's name. On the event's definition page, the Subscriptions related list shows all the active triggers, processes, and platform event–triggered flows that are subscribed to the platform event.
What are platform events in LWC?
Platform events enable the flow of event messages within Salesforce and to or from external apps. Apps on the Salesforce platform use an Apex method to publish events and an Apex trigger or the empApi Lightning component to consume events.
What is a platform event message is received?
A platform event is a special kind of Salesforce entity, similar in many ways to an sObject. An event message is an instance of a platform event, similar to how a record is an instance of a custom object. Unlike custom objects, you can't update or delete event records.
How do I deploy a platform event in Salesforce?
Below are the steps to create a custom Platform Event in Salesforce:In Setup, select Platform Events in the quick find.Click New Platform Event.Fill in the standard fields.Platform Events provide two types of publishing mechanisms. ... Click Save to create the platform event.More items...•
How do platform events work?
Platform events are based on the publish/subscribe model and work directly with a message bus which handles the queue of incoming events and processes listening for them. This is built in real time integration patterns in the Salesforce Platform which helps to reduce point-to-point integration.
How do you use a platform event?
We can publish the platform events in 3 ways:Publish Events Messaging using APEX.Publish Events Messaging using Declarative tools (Process Builder or Cloud Flow Designer Tool / Visual Work flow).Publish Events Messaging using Salesforce API from external app.
How do you trigger a platform event?
After an event message is published, the after insert trigger is fired. To create a platform event trigger, use the Developer Console. Click the Setup icon, select Developer Console, and click File | New | Apex Trigger. Provide a name and choose your event for the sObject, and click Submit.
How do you listen a platform event in LWC?
0:4220:14How to Subscribe to Platform Event from LWC - YouTubeYouTubeStart of suggested clipEnd of suggested clipPlatform event if you see here this is under integrations menu you can find out crack form events.MorePlatform event if you see here this is under integrations menu you can find out crack form events. And then you can create your own platform.
Can lightning components subscribe to platform events?
Subscribe to Platform Event Notifications in a Lightning Component. Subscribe to platform events with the empApi component in your Lightning web component or Aura component. The empApi component provides access to methods for subscribing to a streaming channel and listening to event messages.
What is Pubsub in LWC?
Pub-Sub Model is essentially used to transfer the information between the component which are not in the same DOM hierarchy – which means that the components are not connected/ related in any way with each other using the parent-child relationship.
What is a calendar event in Apex?
Calendar Events. A calendar event is an appointment or meeting that you create and view in the user interface.
What is generic event?
Generic Events. Generic events are custom events that contain arbitrary payloads. With a generic event, you can’t define the schema of the event.
What is Event Monitoring?
Like Real-Time Event Monitoring, you can use Event Monitoring to track user activity, such as logins and running reports. Unlike Real-Time Events, Event Monitoring doesn’t send real-time notifications. Instead, it stores user activity in a log that you can query. Transaction Security Policies.

Types of Platform Events
- 1. Standard PE
These are the predefined events provided by Salesforce itself. Some examples of Standard PE are: 1. AssetTokenEvent: Monitors OAuth 2.0 authentication activity. 2. BatchApexErrorEvent: Reports error encountered in batch apexjobs. - 2. High-Volume PE
These are custom PE used to publish and process millions of events effectively and to scale your event-based apps.
Defining Platform Events
- Below are the steps to create a custom Platform Event in Salesforce: 1. 1. In Setup, select Platform Eventsin the quick find. 2. 2. Click New Platform Event. 3. 3. Fill in the standard fields. 4. 4. Platform Events provide two types of publishing mechanisms. Publish after commit is used to publish the event only after the transaction is successfully committed. Publish Immediatelywill p…
Publishing Platform Events
- Below are several ways to publish a platform event after defining the same: 1. Publish Event Messages with Flows 2. Publish Event Messages with Processes 3. Publish Event Messages with Apex 4. Publish Event Messages via APIs Below is the code snippet to publish platform event with Apex:
Subscribing Platform Events
- Below are the several ways to receive the platform event: 1. Subscribe to Platform Event Messages with Flows 2. Subscribe to Platform Event Messages with Processes 3. Subscribe to Platform Event Notifications with Apex Triggers 4. Subscribe to Platform Event Notifications in a Lightning Component 5. Subscribe to Platform Event Notifications with CometD(Workbench)
Conclusion
- We hope you find this post helpful and will guide you to define, publish, and subscribe to platform events. To know more, don’t hesitate to connect with us. Emizentech, a Salesforce development company, is always there to serve you the best.