–: “In this post, we create an Omniscript and FlexCard. We will send Omniscript data to the FlexCard and display the data in the next step in the Omniscript.”
- “Pass a set of records using ‘parent-data=true’ and the ‘records’ global context.”
Step :– 1 “First, in the Omniscript, we create text fields for input.”
-
“To configure, navigate to the Properties panel of the Custom LWC element. In the Custom Lightning Web Component Properties section, add the following properties:
- Add ‘parent-data’ as the Property Name and ‘true’ as the Property Source.
-
Click + Add new Option and add ‘records’ as the Property Name. In the Property Source, add the JSON node containing the array of records to be passed to your FlexCard.
-
Enter the node as a merge field using Omniscript merge field syntax, such as %Step1%. For example, if your list of records is stored in a JSON object called ‘accounts,’ enter %accounts%.”
In Data Source Type – Custom
*Custom JSON – { “Text1”: “Abhi”
“Text2”: “Maurya”,
“Text3”: “Ji” } // its Come From Omni script Data Node
REPEAT OPTIONS = TRUE
Activate the Flex Card and OnmiScript.
Step :– 3 “Omniscript on the Preview tab.”