---
schema_version: "1"
id: a8f90811ba741cb23a8bc96fb04239660c3b0fdfbbe67ed7d7ec6163d984ab41
title: Messaging Framework (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_messaging_framework.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_messaging_framework.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 6e8394dbff8b3af8084e2f350c8ec008b047e7044a172c1c56e6ceae5afc8529
description: 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.
products:
  - Omnistudio
release: "264"
---
# 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](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).

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

<table class="slds-table slds-table_bordered slds-max-medium-table_stacked slds-m-bottom_small ">
        <colgroup>
          <col>
          <col>
          <col>
          <col>
        </colgroup>
        <thead class="slds-text-title_caps ">
          <tr class="">
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d301526e52">
              <p style="margin-bottom:0;">Property</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d301526e58">
              <p style="margin-bottom:0;">Description</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d301526e64">
              <p style="margin-bottom:0;">Object or Component</p>
            </th>
            <th scope="col" class="slds-cell-wrap" style="vertical-align:top;" id="d301526e70">
              <p style="margin-bottom:0;">Example</p>
            </th>
          </tr>
        </thead>
        <tbody>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e52 ">
              <p style="margin-bottom:0;">Window postMessage</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e58 ">
              <p style="margin-bottom:0;">Send information from an element to a window object in key-value
                pairs.</p>
            </td>

            <td data-label="Object or Component" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e64 ">
              <p style="margin-bottom:0;">Window object</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e70 ">

            </td>

          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e52 ">
              <p style="margin-bottom:0;">Pub/Sub</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e58 ">
              <p style="margin-bottom:0;">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.</p>
            </td>

            <td data-label="Object or Component" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e64 ">
              <p style="margin-bottom:0;">Lightning Web Components</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e70 ">

            </td>

          </tr>
          <tr class="">
            <td data-label="Property" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e52 ">
              <p style="margin-bottom:0;">Session Storage</p>
            </td>

            <td data-label="Description" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e58 ">
              <p style="margin-bottom:0;">Send information to a Session Storage object using key-value pairs. A
                session storage object clears when a page session ends.</p>
            </td>

            <td data-label="Object or Component" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e64 ">
              <p style="margin-bottom:0;">Session Storage object</p>
            </td>

            <td data-label="Example" class="slds-cell-wrap" style="vertical-align:top;" headers="d301526e70 ">

            </td>

          </tr>
        </tbody>
      </table>

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)](https://help.salesforce.com/s/articleView?id=xcloud.os_embed_an_omniscript_lightning_web_component_in_a_lightning_web_component.htm&release=264.0.0&type=5 "For the managed package runtime, embed an LWC Omniscript in a Lightning Web Component by copying the LWC Omniscript component tag and adding it directly into the Lightning Web Component.").

- **[Communicate from Omniscript to a Lightning Web Component (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_communicate_with_omniscript_from_a_lightning_web_component.htm&release=264.0.0&type=5)**  
    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)](https://help.salesforce.com/s/articleView?id=xcloud.os_message_with_window_post_messages_and_session_storage_messages.htm&release=264.0.0&type=5)**  
    For the managed package runtime, communicate between Omniscript, windows, and components with window post messages and session storage messages.