Trigger a Flow to Run When a Platform Event Message Is Received
With platform event–triggered flows, you can do all your
automation in one place. Previously, platform event–driven automation required
you to use Process Builder and Flow Builder. Unlike event processes, platform
event–triggered flows don’t require an associated Salesforce object and can
access all available records.
Where: This change applies to Lightning Experience and Salesforce Classic in Enterprise, Performance, Unlimited, and Developer editions.
Who: To activate a platform event–triggered flow, you need the View All Data permission.
How: When you create the flow, select Platform Event–Triggered
Flow.
From the Start element, choose the platform event whose event messages trigger the flow
to run.
In a platform event–triggered flow, the $Record global variable contains the field values from the platform event message. You can use those values throughout the flow.