---
schema_version: "1"
id: 448226ef64165bd4035c1b81fe59d4d60ff9ca6d4a809f23810f4a6f0a90e20d
title: Fire Platform Events from Omniscripts (Managed Package)
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.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_fire_platform_events_from_omniscripts.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 2def29fea2be5f0087472a66f6aaa0840dbcffa36dc27fccceca05fa17542032
description: For the managed package runtime, fire Salesforce platform events from the context of an Omniscript.
products:
  - Omnistudio
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

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/).