Messaging Framework (Managed Package)

For the managed package runtime, communicate between an Omniscript, windows, Lightning web components, and Omniscript elements using window post messages, session storage messages, and PubSub messaging.

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

Determine which object or component needs to handle and use data, and use the corresponding property.

Property

Description

Object or Component

Example

Window postMessage

Send information from an element to a window object in key-value pairs.

Window object

Pub/Sub

Communicate with Omniscript from a custom LWC by sending key-value pairs. Use the events passed in the key-value pairs to trigger custom behavior in a component.

Lightning Web Components

Session Storage

Send information to a Session Storage object using key-value pairs. A session storage object clears when a page session ends.

Session Storage object

For information on communicating with an LWC from an embedded LWC Omniscript, see Embed an Omniscript Lightning Web Component in a Lightning Web Component (Managed Package).