---
schema_version: "1"
id: 9aad5e50b5ce983bca4788a405c1e322cc583fb801d042119af46afbd7395a45
title: Launch an Omniscript from a Flexcard (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_launch_an_omniscript_from_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_launch_an_omniscript_from_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 1868aeebf345e8c2bf50daac3dc9929f32623bffef6739cdaf84f03f270bdd55
description: For the managed package runtime, launch an Angular or LWC Omniscript from an Omniscript Action element on a Flexcard. For example, launch a form that updates Account information based on the account Id passed from the Flexcard to the Omniscript.
products:
  - Omnistudio
release: "264"
---
# Launch an Omniscript from a Flexcard (Managed Package)

For the managed package runtime, launch an Angular or LWC Omniscript from an Omniscript Action element on a Flexcard. For example, launch a form that updates Account information based on the account Id passed from the Flexcard to the Omniscript.

![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. From the Flexcard Designer, drag an **Action** element into a state.
2. Select **Omniscript** from the **Action Type** dropdown. See [Flexcards Actions Reference (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_actions_reference.htm&release=264.0.0&type=5 "For the managed package runtime, select from multiple ways to execute an action from a Flexcard. Create an action to launch an Omniscript, navigate to a web page or application, display a flyout, fire an event, and more.").
3. Click into **Omniscript** and select the Omniscript to launch.
    
    ![Tip](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_tip.png)
    
    Tip To include a scrollbar in an Omniscript, create a model flyout in the flexcard that calls the Omniscript. No scrollbar is included when you call the Omniscript in a new page.
4. (Optional) From the **VisualForce Page** dropdown, select a VisualForce page to display the Omniscript. For example, if you have a custom template for your Omniscript, select the custom page you created.
5. (Optional) To update the Omniscript's layout, select **Lightning** or **Newport** from the **Layout Type** dropdown.
6. In the **ContextId** (or before Spring '22 **Context ID**) field, enter the sObject's context Id associated with your Omniscript. For example, if your Omniscript updates account information, your context Id is an account record Id variable from the data source, such as {AccountId}.
7. (Optional) If you selected an LWC Omniscript from the **Console Tab Label** field, enter the visible label of the console tab. For example, Update Account.
    
    ![Console tab label](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/console_tab_label.png)
8. (Optional) If you selected an LWC Omniscript, from **Console Tab Icon**, select an icon to display in the subtab of a console after the Omniscript Action link is clicked. For example, select standard:account for an Omniscript that updates account information.
    
    ![Console tab icon](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/console_tab_icon.png)
9. (Optional) To pass contextual data as a key/value pair, click **\+ Add New** next to **Input Parameters** and perform these tasks:
    1. Enter a variable name in the **Key** field. Prefix your variable name with `c__`, such as c\_\_name.
    2. Enter the variable value in the **Value** field.
10. (Optional) Select whether to open the Omniscript in the current tab or a new tab, select from the **Open Target In** dropdown.
11. (Optional) To configure other options common among all action properties, see [Flexcards Action Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_action_properties.htm&release=264.0.0&type=5 "For the managed package runtime, Action element properties are configurable from the Properties panel in the Flexcard Designer when you select an Action element. With the Action element, create an action to launch an Omniscript, navigate to a web page or application, display a flyout, fire an event, and more.").

What’s next: To style your action element, click **Style** to open the Style panel, and see [Flexcards Action Style Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_flexcards_action_style_properties.htm&release=264.0.0&type=5 "For the managed package runtime, configure style properties specific to the Action element from the Style panel in the Flexcard Designer.").

- **[Launch an Omniscript from an Omniscript Action on a Flexcard in Lightning Experience (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_launch_an_omniscript_from_an_omniscript_action_on_a_flexcard_in_lightning_experience.htm&release=264.0.0&type=5)**  
    For the managed package runtime, on a Lightning Experience page, launch an Omniscript from an Omniscript Action on a Flexcard. Launch an LWC or an Angular Omniscript.
- **[Launch an Omniscript from an Omniscript Action on a Flexcard in a Community (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_launch_an_omniscript_from_an_omniscript_action_on_a_flexcard_in_a_community.htm&release=264.0.0&type=5)**  
    For the managed package runtime, launch an Omniscript from an Omniscript Action on a Flexcard in a Community. Launch an LWC or an Angular Omniscript.