---
schema_version: "1"
id: c7b1d0ecc96f7b7aa50f0317a9cf4bcc277b205ca3b025882bc05157356e2bad
title: Embed the Component (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_embed_the_component.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_embed_the_component.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: cf732fb1e0f6c708be28819906c882fcd918c39eac23cae0586bac910859feca
description: For the managed package runtime, copy the Omniscript component tag and embed it in a Lightning Web Component.
products:
  - Omnistudio
release: "264"
---
# Embed the Component (Managed Package)

For the managed package runtime, copy the Omniscript component tag and embed it in a Lightning Web Component.

Embedding an Omniscript in a Lightning Web Component is supported for the managed package runtime but not for the standard runtime.

![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. In an Omniscript Designer, copy the LWC Omniscript tag using one of these options:
    
    - In the Omniscript Designer, click the dropdown menu, click **How To Launch**, and copy one of the component tags.
        
        ![Embed component tags for LWC OmniScripts in the LWC OmniScript Designer](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/two_omniscript_component_tags.png)
    - In the Classic Designer, copy the LWC Omniscript component tag from the Script Configuration properties.
        
        ![Embed component tag for LWC OmniScripts in the Classic Designer's Script Configuration section](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/classic_component_tag.png)
    - In the Classic Designer, copy the LWC Omniscript component code from one of the examples found in the **How to Launch activated script section** of the Omniscript.
        
        ![Embed component tags for LWC OmniScript components in the Classic Designer.](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/omnistudio_for_managed_packages/images/classic_lwc_embed.png)
2. In your Lightning Web Component's HTML file, enter the component tag to embed the Omniscript component.
    
    For example, this code shows the tag for an Omniscript with a Type of doc, a SubType of example, and a Language of English.
    
    ```
    <template>
       <c-doc-example-english layout="lightning"></c-doc-example-english>
    </template>
    ```
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)
    
    Note
    
    When passing data from an LWC into an embedded LWC Omniscript's prefill property, the string values "true" and "false" will convert to boolean values. To avoid this issue, stringify your values by adding additional quotation marks escaped by backslashes. For example, to convert this prefill object `prefill = { "Multi-select1":"true"}` the new syntax must be `prefill = { "Multi-select1":""true""}`.