---
schema_version: "1"
id: 0d01a512141ded027ced70dc7f347d750da9254de2e74e7cac21d8de97e13ab2
title: Launching an LWC Omniscript in Lightning (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_launching_an_lwc_omniscript_in_lightning.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_launching_an_lwc_omniscript_in_lightning.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 9e964d346df4f35825c96f6e83889a7708916ac51c4cb87e6145c8a0a2cbc7d1
description: "For the managed package runtime, to make an Omniscript URL addressable using the vlocityLWCOmniWrapper:"
products:
  - Omnistudio
release: "264"
---
# Launching an LWC Omniscript in Lightning (Managed Package)

For the managed package runtime, to make an Omniscript URL addressable using the vlocityLWCOmniWrapper:

![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 your LWC Omniscript, click the **How to Launch Activated Script** button.
2. In the How to Launch modal, click the **LWC** tab.
3. In the Vlocity Aura Wrapper section of the LWC tab, copy the relative path of the URL.
    
    ```
    https://MyDomainName--c.vf.force.com/lightning/cmp/namespace__vlocityLWCOmniWrapper?c__target=namespace:myLWCTestEnglish&c__layout=lightning
                   
    ```
4. (Optional) Launch the Omniscript using a Newport layout by clicking **Newport** and copying the relative path.
5. (Optional) When using the URL path in a production org, you must replace the namespace of your component. In the c\_\_target parameter of the URL, replace the namespace with c.
    
    ```
    c__target=c:myLWCTestEnglish&c__layout=lightning
    ```
6. (Optional) Prefill an Omniscript by assigning prefill values with the prefix &c\_\_ placed before the key. For example, to pass `"AccountName": "Acme"` into an Omniscript's data JSON, add the parameter using the syntax &c\_\_AccountName=Acme.
    
    ```
    lightning/cmp/NS__vlocityLWCOmniWrapper?c__target=c:myTypeExampleEnglish&c__AccountName=Acme
    ```
7. (Optional) When using the wrapper in a console app, add a Console Tab Icon and a Console Tab Label by setting the **c\_\_tabIcon** and **c\_\_tabLabel** parameters. The c\_\_tabIcon accepts an [SLDS Icon](https://www.lightningdesignsystem.com/icons/) , and c\_\_tabLabel accepts plain text. For example, **&c\_\_tabLabel=Custom Label&c\_\_tabIcon=standard:account** renders the console tab shown in this example image.
    
    ![LWC Console Tab](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/lwc_consoletab.png)
8. (Optional) To view additional parameters for the vlocityLWCOmniWrapper, see [Launch Lightning Web Component URLs with vlocityLWCWrapper (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_launch_lightning_web_component_urls_with_vlocitylwcwrapper.htm&release=264.0.0&type=5 "For the managed package runtime, add the vlocityLWCWrapper to make Lightning web components in a Lightning page URL addressable. Lightning web components are not URL addressable by default. The vlocityLWCWrapper wraps the Lightning web component in a URL addressable aura component.").
9. (Optional) Fire events from the Navigate Action by passing an event to the Omniscript in the URL parameter `c__vlocEvents`. The Navigate Action element must have the checkbox property **LWC PubSub Message?** enabled to fire the event.
10. Paste the URL wherever you plan to invoke the Omniscript from and preview the functionality.