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.
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).
- Communicate from Omniscript to a Lightning Web Component (Managed Package)
For the managed package runtime, send data from Omniscript actions and steps to other Lightning web components using the Publish and Subscribe property. - Message with Window Post Messages and Session Storage Messages (Managed Package)
For the managed package runtime, communicate between Omniscript, windows, and components with window post messages and session storage messages.