
Now we’re ready to open the EventLogFile to query the information. Click File | Open. Under Entity Types, select Objects. In the Filter the repository field, type EventLogFile. Select EventLogFile under Entities. Click Open. Next, select the fields for your query and click the Query button.
Table of Contents
How do I query eventlogfile in Salesforce?
In the Filter the repository field, type EventLogFile. Select EventLogFile under Entities. Click Open. Next, select the fields for your query and click the Query button. Before proceeding to the next step, check to make sure event data is present in your org.
Where can I find every event type in Salesforce?
Every event type is documented in the Salesforce Object Reference. In it, you can see the fields and their descriptions, and sample queries to use.
How do I run a query in Salesforce?
Click Open. Next, select the fields for your query and click the Query button. Before proceeding to the next step, check to make sure event data is present in your org. If there isn’t data, run and export at least one report and wait 24 hours for the data to appear.
Is it possible to query platform events using soql?
20 Other answers have shown that it’s not supported to query events using SOQL, but I want to clarify that it’s not only not supported, it is not meaningful. Platform events form an ordered time stream.

Can we query platform events in Salesforce?
You can not query Platform events through SOQL or SOSL. Published platform events can’t be rolled back.
How do I view data from a platform event 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.
How do I query an event in Salesforce?
You can use the Query Editor in the Developer Console to execute a Salesforce Object Query Language (SOQL) query….Query Event Log Files in Developer ConsoleClick File | Open.Under Entity Types, select Objects.In the Filter the repository field, type EventLogFile .Select EventLogFile under Entities.Click Open.
How do I retrieve a platform event in Salesforce?
To retrieve all platform events, in addition to custom objects defined in your org, use the wildcard character ( * ) for the
When platform events are published?
Platform events are scalable and secure messages holding data. The publishers publish the event messages that the subscribers receive in real-time. If one wants to modify the data publishes, he needs to define platform event fields.
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.
What is event monitoring Salesforce?
Event Monitoring is one of many tools that Salesforce provides to help keep your data secure. It lets you see the granular details of user activity in your organization. We refer to these user activities as events.
How do I set up event monitoring in Salesforce?
In permission sets or the enhanced profile user interface, select a permission. In the Find Settings dialog box, enter View Real-Time Event Monitoring Data . Click Edit, select the option, and click Save. Repeat these steps for the Customize Application permission.
How do I download event monitoring logs in Salesforce?
Download Logs from Your BrowserLog in to your org.Navigate to the ELF Browser application.Click Production Login.Enter a date range for your search.Enter an event type for your search.Enter an interval (daily or hourly).Click Apply.
What is meant by platform event message in Salesforce?
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.
What is a platform event triggered flow?
With platform event–triggered flows, you can do all your automation in one place. Users can trigger a Flow when a platform event message is received. Unlike Process Builder, users can access all available records when a Flow is invoked by the platform event message.
What is ReplayId in platform event?
The ReplayId field value, which is populated by the system when the event is delivered to subscribers, refers to the position of the event in the event stream. Replay ID values are not guaranteed to be contiguous for consecutive events. For example, the event following the event with ID 999 can have an ID of 1,025.
What is EventType field in Salesforce?
The EventType field in the EventLogFile object supports events. Every event type is documented in the Salesforce Object Reference. In it, you can see the fields and their descriptions, and sample queries to use.
How long does it take for event data to appear in a report?
Before proceeding to the next step, check to make sure event data is present in your org. If there isn’t data, run and export at least one report and wait 24 hours for the data to appear.
Can you confirm suspicions with Event Monitoring?
Normally, you wouldn’t be able to confirm your suspicions. But with Event Monitoring, you can gather all the evidence you need to set the story straight. Let’s look at how this process works. It takes only a couple of clicks to open the Developer Console from Lightning Experience.

Types of Platform Events
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 successfull…
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.