How To Pass Data OmniScript To FlexCard

–: “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.” 

  1. “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.”  

omniscript
For Input On OmniScript
  • “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%.”

send flexcard
send omniscript to flexcarda

Step :–2 IN Flex Card  —    “First, we enable OmniScript support in FlexCard.”

in flex card
filed in flexcard

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.

in flexcard
in flexcard json

Step :– 3   “Omniscript on the Preview tab.”

omniscript
show data in omniscript
Scroll to Top