---
schema_version: "1"
id: c266cf401b4ed68ed881edd046bf3e043c2af6e07102b73a4ae1e1e299a80691
title: Fire Platform Events from Omniscripts
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_fire_platform_events_from_omniscripts_19661.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_fire_platform_events_from_omniscripts_19661.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 5c80f3b69e15f00cf9da609bd1e65936b1c681b632e7ef3872933e0b48e4fcc6
description: Fire Salesforce platform events from the context of an Omniscript.
products:
  - Omnistudio
release: "264"
---
# Fire Platform Events from Omniscripts

Fire Salesforce platform events from the context of an Omniscript.

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](https://developer.salesforce.com/docs/).