Close Menu
SalesforceCodex
    Facebook X (Twitter) Instagram
    Trending
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    • How to Implement Basic Queueable Chaining in Salesforce Apex
    • How to Suppress PMD Warnings in Salesforce Apex
    • Top 10 PMD Issues Salesforce Developers Should Focus on in Apex
    Facebook X (Twitter) Instagram
    SalesforceCodex
    Subscribe
    Saturday, June 14
    • Home
    • Architecture
    • Salesforce
      • News
      • Apex
      • Integration
      • Books Testimonial
    • Questions
    • Certification
      • How to Prepare for Salesforce Integration Architect Exam
      • Certification Coupons
    • Integration Posts
    • Downloads
    • About Us
      • Privacy Policy
    SalesforceCodex
    Home»Salesforce»Apex»Ultimate Guide to Monitoring Platform Events using Streaming Monitor

    Ultimate Guide to Monitoring Platform Events using Streaming Monitor

    Dhanik Lal SahniBy Dhanik Lal SahniJanuary 16, 2024No Comments4 Mins Read
    Facebook Twitter Pinterest LinkedIn Tumblr Email
    Monitoring Platform Events
    Share
    Facebook Twitter LinkedIn Pinterest Email

    Platform Events in Salesforce is a powerful feature that enables event-driven architecture within the Salesforce ecosystem. This enables integration and communication between different parts of your Salesforce org and external systems in a scalable and loosely coupled manner. Platform events are used to send and receive events in real-time.

    We can monitor the usage of platform events but we can’t see platform event messages. Using the Salesforce AppExchange package Streaming Monitor we can check event data also. We can use this package to monitor all streaming events like PushTopic events, generic events, standard and custom platform events, change data capture events, and monitoring events. This post will explain how to use this package to monitor platform event data.

    Use Case

    ABC Company need to send order information created into Salesforce to third-party systems for further processing like invoicing, fulfilment etc. This information should be sent to third-party systems even if their system is down for some time.

    Solution

    We will create a platform event and push messages to the third-party system. Third-party systems can subscribe to this platform event and use it for processing. These messages are available for 72 hours so they can get all messages even system is rebooted.

    The steps to monitor platform events are as below

    1. Create Platform Event
    2. Install Streaming Monitor
    3. Subscribe to Platform Event in Package
    4. Test Functionality

    1. Create a Platform Event

    As per the above solution, we need to send order information to the third-party system. Let us create a platform event Order Created (Order_Created_Event__e) that will be used for sending message to third party. Create the below fields in this platform event

    Field LabelField APIField Data Type
    Order IDOrderId__cText(255)
    Product IDProductId__cText(21)
    Product NameProductName__cText(255)
    QuantityQuantity__cNumber(5, 0)
    Platform Event Fields

    This event is published when a new product order is created in Salesforce. Let us create a flow that will publish platform events when an product order is created.

    Flow Creation

    Create a record trigger flow on the ProductOrder object. Set flow object and entry criteria like the below table.

    Configure TriggerA record is created or updated
    Condition RequirementsAll Conditions Are Met (AND)
    When to Run the Flow for Updated RecordsEvery time a record is updated and meets the condition requirements
    Optimize the Flow forActions and Related Records
    Flow Enry Crietria

    The below Condition Requirements need to be set

    FieldOperatorValue
    Product2IdIs Nullfalse
    OrderIdIs Nullfalse
    Flow Entry Criteria Condition

    Add the Create Record element and add values from the current record to platform event properties. Check the below image for value assignment. You can assign values based on your assignments.

    Publish Platform Event in Flow | SalesforceCodex
    Publish Platform Event in Flow

    Save and activate this flow for publishing platfform event.

    2. Install Streaming Monitor

    Install Streaming Monitor from AppExchange to your Salesforce Org. It is a free app developed by Salesforce Labs. You should try this application first in sandbox org. Once successfully tested and required then install in production.

    Streaming Monitor | Platform Events | SalesforceCodex
    Streaming Monitor

    Once it is installed it will show in the Installed Package page. Now we can test this application to monitor platform events.

    3. Subscribe to the Platform Event in Streaming Monitor

    We can set subscriptions to platform events from Streaming Monitor. This is lightning app and is accessible similar to other object.

    This app can be used to monitor almost all events. We will subscribe to our custom platform event. Select Subscribe to a channel in actions. Set properties like below

    Event typeCustom Platform event
    Event nameOrder Created Event (Change based on your given name)
    Streaming channelThis will automatically generated
    Replay optionNo replay (default for all new messages- let this be selected)
    Replay past events – this will show previous messages as well
    Replay Id- This will show message after given replay id
    Streaming Event Subscription in Streaming Monitor

    4. Test Feature

    To test this feature we need to create or update Product Order record. Once it is created or updated, it will show messages in Streaming Monitor.

    References

    Streaming Monitor

    Platform Events

    Similar Posts

    Publish Platform Events from ASP.NET

    Event Driven Software Architecture

    Create Jira Issue in Salesforce Apex with Jira Integration

    Accessing External Credential Parameters of Named Credential in Salesforce Apex

    Configurable Record Picker in Lightning Web Component

    Need Help?

    Need some kind of help in implementing this feature, connect on my LinkedIn profile Dhanik Lal Sahni.

    appexchange Change Data Capture flow generic event lightning platform event record trigger flow salesforce salesforce lab streaming api streaming event streaming monitor
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email
    Previous ArticleCreate Jira Issue in Salesforce Apex with Jira Integration
    Next Article Top Developer Features in Salesforce Spring ’24 Release
    Dhanik Lal Sahni
    • Website
    • Facebook
    • X (Twitter)

    With over 18 years of experience in web-based application development, I specialize in Salesforce technology and its ecosystem. My journey has equipped me with expertise in a diverse range of technologies including .NET, .NET Core, MS Dynamics CRM, Azure, Oracle, and SQL Server. I am dedicated to staying at the forefront of technological advancements and continuously researching new developments in the Salesforce realm. My focus remains on leveraging technology to create innovative solutions that drive business success.

    Related Posts

    By Dhanik Lal Sahni9 Mins Read

    10 Salesforce Chrome Extensions to Boost Your Productivity

    June 1, 2025
    By Dhanik Lal Sahni4 Mins Read

    How to Build a Generic Modal Window in Lightning Web Component

    May 26, 2025
    By Dhanik Lal Sahni6 Mins Read

    Top 10 Salesforce Flow Features of Salesforce Summer ’25

    May 11, 2025
    Add A Comment
    Leave A Reply Cancel Reply

    Ranked #1 SALESFORCE DEVELOPER BLOG BY SALESFORCEBEN.COM
    Featured on Top Salesforce Developer Blog By ApexHours
    Recent Posts
    • 10 Salesforce Chrome Extensions to Boost Your Productivity
    • How to Build a Generic Modal Window in Lightning Web Component
    • Top 10 Salesforce Flow Features of Salesforce Summer ’25
    • Unlock the Power of Vibe Coding in Salesforce
    • How to Implement Dynamic Queueable Chaining in Salesforce Apex
    Ranked in Top Salesforce Blog by feedspot.com
    RSS Recent Stories
    • Top 20 Salesforce Data Cloud Interview Questions & Answers for Admins June 5, 2025
    • How to Connect Excel to Salesforce to Manage Your Data and Metadata February 9, 2025
    • Difference Between With Security and Without Security in Apex January 2, 2025
    • Top Reasons to Love Salesforce Trailhead: A Comprehensive Guide December 5, 2024
    • How to Utilize Apex Properties in Salesforce November 3, 2024
    Archives
    Categories
    Tags
    apex (111) apex code best practice (8) apex rest (11) apex trigger best practices (4) architecture (22) Asynchronous apex (9) AWS (5) batch apex (9) batch processing (4) code analysis (3) code optimization (8) custom metadata types (5) design principle (9) flow (15) future method (4) google (6) google api (4) integration (19) integration architecture (6) lighting (8) lightning (65) lightning-combobox (5) lightning-datatable (10) lightning component (31) Lightning web component (63) lwc (52) named credential (8) news (4) optimize apex code (4) optimize apex trigger (3) Permission set (4) pmd (3) Queueable (9) rest api (23) S3 Server (4) salesforce (142) salesforce apex (47) salesforce api (4) salesforce api integration (5) Salesforce Interview Question (4) salesforce news (5) salesforce question (5) solid (6) tooling api (5) Winter 20 (8)

    Get our newsletter

    Want the latest from our blog straight to your inbox? Chucks us your detail and get mail when new post is published.
    * indicates required

    Facebook X (Twitter) Instagram Pinterest YouTube Tumblr LinkedIn Reddit Telegram
    © 2025 SalesforceCodex.com. Designed by Vagmine Cloud Solution.

    Type above and press Enter to search. Press Esc to cancel.

    Ad Blocker Enabled!
    Ad Blocker Enabled!
    Our website is made possible by displaying online advertisements to our visitors. Please support us by disabling your Ad Blocker.