---
schema_version: "1"
id: d7e25871813dd695756c6b35b5493de578500fdf4765e0cd0c46dd495096ce29
title: Update 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_update_an_omniscript_from_a_flexcard.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_update_an_omniscript_from_a_flexcard.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 7e59b101198cb503086a3acf790a332803e7518a65754173b0289e883979bc33
description: For the managed package runtime, create an action that updates an Omniscript's data JSON from the Flexcard embedded in the Omniscript. You can embed a Flexcard inside an Omniscript as a Custom LWC.
products:
  - Omnistudio
release: "264"
---
# Update an Omniscript from a Flexcard (Managed Package)

For the managed package runtime, create an action that updates an Omniscript's data JSON from the Flexcard embedded in the Omniscript. You can embed a Flexcard inside an Omniscript as a Custom LWC.

Before you begin, create an Omniscript. See

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

[Create an LWC Omniscript (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_lwc_omniscript.htm&release=264.0.0&type=5 "For the managed package runtime, create an LWC Omniscript to use custom Lightning web components and functionality exclusive to LWC Omniscripts.") and [Create an LWC Omniscript in the LWC Omniscript Designer (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_create_an_lwc_omniscript_in_the_lwc_omniscript_designer.htm&release=264.0.0&type=5 "For the managed package runtime, create an LWC Omniscript to build a script in the LWC Omniscript Designer.").

Example: Suspend Mobile Device Plan

Let's say you want to build a Flexcard that enables a customer to start the process to suspend their mobile device plan.

Create the Flexcard that displays the customer's available devices. Add a Toggle element that lets them select a device. Configure an Update Omniscript action on the Toggle element to pass the value of the action (true or false) to the Omniscript.

Then, build the Omniscript that walks a customer through the process of selecting the device and suspension date range, before submitting the request.

1. From the Flexcard Designer, drag an **Action** element into a state.
2. Select **Update Omniscript** from the **Action Type** dropdown.
3. (Optional) To point to a specific data node in the Omniscript JSON, click into the **Parent Node** field and a node from the list of merge fields or enter the data node manually.
    
    For example, from the example above enter data to point to the parent node listing all records.
4. To pass the data to update, click **\+ Add New** next to **Input Parameters**.
    
    1. In the **Key** field, enter the name of the field to update. For example, in the above example, enter records.
    2. In the **Value** field, enter the new value from the Flexcard's data source. For example, in the above example, enter the **{records}** context variable to pass all Asset records.
5. (Optional) To configure other options common among all action properties,
6. Style your action element, click **Style** to open the Style panel.
7. Enable **Omniscript Support**:
    
    1. Click **Setup** to open the Setup panel.
    2. Select **Omniscript Support**.

What’s next: Embed the Flexcard inside an LWC Omniscript. See [Embed Flexcards in an Omniscript](https://help.salesforce.com/s/articleView?id=xcloud.os_embed_flexcards_in_an_omniscript_24124.htm&type=5&language=en_US).