---
schema_version: "1"
id: 96525b8598496a9e0b4a2cc09fd00fecb8990a68063f005dff548a814e70790d
title: Add a Vlocity Action to 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_add_a_vlocity_action_to_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_add_a_vlocity_action_to_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: e59a66c5b3762cbbde0e94c1f21390d91ad9f743b7adc8f263258a3f2e1f0dc6
description: For the managed package runtime, add a reusable action to a Flexcard with a Vlocity Action element. Vlocity Actions launch Omniscripts, components, web pages, or external applications.
products:
  - Omnistudio
release: "264"
---
# Add a Vlocity Action to a Flexcard (Managed Package)

For the managed package runtime, add a reusable action to a Flexcard with a Vlocity Action element. Vlocity Actions launch Omniscripts, components, web pages, or external applications.

![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).

See [Vlocity Actions (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_vlocity_actions.htm&release=264.0.0&type=5 "For the managed package runtime, Vlocity Actions are automatically generated URLS that launch Vlocity Omniscripts, Vlocity Cards components, web pages, or external applications. Actions are typically specific to a given object type, such as Account, Contact, Policy, or Asset.").

1. From the Flexcard Designer, drag an **Action** element into a state.
2. (Optional) From the Properties panel, update the element name in the **Element Name** field.
3. Select **Vlocity Action** from the **Action Type** dropdown.
4. To select the sObject to perform the action on, click into the **Object** field.
5. To select an Action Name from the data source as a merge field, click to enable **Fetch Action Name From Datasource**.
6. To select the Vlocity Action, click into the **Vlocity Action Name** field. Before Spring '22, click into the **Action Name field**.
    
    If **Fetch Action Name From Datasource** isn’t selected, select from a list of Vlocity Actions associated with the sObject.
7. (Optional) Click into the **ContextId** field to select a context Id, such as AccountId. Before Spring '22 click into the **Context ID** field.
8. (Optional) To pass contextual data as a key/value pair, click **\+ Add New** next to **Input Parameters**, and perform the following tasks:
    
    1. Enter a variable name in the **Key** field.
    2. Enter the variable value in the **Value** field.
9. (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.").