You are here:
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
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
Create an LWC Omniscript (Managed Package) and Create an LWC Omniscript in the LWC Omniscript Designer (Managed Package).
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.
- From the Flexcard Designer, drag an Action element into a state.
- Select Update Omniscript from the Action Type dropdown.
-
(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.
- To pass the data to update, click + Add New next to Input Parameters.
- (Optional) To configure other options common among all action properties,
- Style your action element, click Style to open the Style panel.
- Enable Omniscript Support:
What’s next: Embed the Flexcard inside an LWC Omniscript. See Embed Flexcards in an Omniscript.

