You are here:
Update an Omniscript's JSON Code from a Flexcard
Specify the JSON node that Omnistudio updates in response to a user action on the Flexcard by embedding the Flexcard in the Omniscript as a custom Lightning web component.
- After you select the update Omniscript action type, enter the information as needed. If you don’t select a parent node, Omnistudio stores the result in a new node in the JSON code
-
To pass the data to update, add an Input Parameter.
-
In Key, enter the name of the field to update. For the preceding example,
enter
records. -
In Value, enter the new value from the Flexcard's data source. For the
preceding example, enter the
{records}context variable to pass all asset records.
-
In Key, enter the name of the field to update. For the preceding example,
enter
- From Setup, turn on Omniscript support.
- Embed Flexcards in an Omniscript
Create a Flexcard where customers start the process to suspend their mobile device plan.
-
-
Create a Flexcard that displays the customer's available devices.
-
Add a toggle element so that they select a device.
-
To pass the value of the action (
trueorfalse) to the Omniscript, add an update Omniscript action to the toggle. -
In Parent Node, enter
data. -
Add a new key/value pair for Input Parameters.
-
In Key, enter
records. -
In Value, enter the
{records}context variable.
-
-
Create an Omniscript that walks a customer through the process of selecting the device and entering a suspension date range, before submitting the request.
-

