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

