Fire Platform Events from Omniscripts (Managed Package)

For the managed package runtime, fire Salesforce platform events from the context of an Omniscript.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

  1. Go to Setup and, under Develop, click Platform Events.
  2. On the Platform Events page, click New Platform Event.
  3. On the New Platform Event page, define the platform event, specifying the fields for the data that you want to associate with the event.
  4. To fire the event, create an Omnistudio Data Mapper Load that populates the platform event fields with event-specific data.
  5. In the Omniscript, compose the data JSON containing the data required by the Data Mapper Load.
  6. Add a Data Mapper Load action to the Omniscript, specifying the Data Mapper that fires the platform event.
  7. Verify that your platform event fired correctly, using one of the programmatic methods described in the Salesforce developer documentation.