Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
Trigger a Flow When a Platform Event Message Is Received
Where: This change applies to Lightning Experience and Salesforce Classic in Essentials, Professional, Enterprise, Performance, Unlimited, and Developer editions.
Who: To activate a flow that triggers when a platform event message is received, you need the View All Data permission.
Why: Previously, you used Process Builder and Flow Builder to manage your printer’s maintenance. For example, the process started when a printer status platform event message was received. The process updated the printer’s print count, launched the flow to create an order for ink or for paper, and paused. When a vendor response platform event message was received, the flow resumed and created a task to service the printer.
Using only Flow Builder, you create two flows. One flow launches when the printer status platform event message is received. The flow updates the print count and creates an order. Another flow launches when the vendor response platform event message is received. The second flow creates a task to service the printer.
How: Create a platform event flow. For Choose a Platform Event That Triggers the Flow, select a platform event.
Unlike Process Builder, you don’t have to associate a Salesforce object and you can access all available records.