Newer Version Available

This content describes an older version of this product. View Latest

Publish Event Messages Using Flows

Use Visual Workfow to publish event messages from a Force.com app as part of some user interaction, an automated process, Apex, or workflow action.

To publish event messages, add a Record Create or a Fast Create element to the appropriate flow. Where you'd usually pick an object to create, select the platform event.

For example, here’s how to configure a Record Create element that publishes a Low Ink event message. This example assumes that the Low Ink platform event is defined in your org and that the event has these custom fields.
  • Printer Model (Text)
  • Serial Number (Text)
  • Ink Percentage (Number)
  1. For Create, enter low and select Low_Ink__e.
  2. Add these fields.
    Field Value
    Printer Model XZO-5
    Serial Number 12345
    Ink Percentage 0.2

    Record Create element in Cloud Flow Designer

  3. Save and activate the flow.