How to Pass Data Parent FlexCard to Child FlexCard

In this post we create two  flexcard first is parent flexcard and child flexcard . In child flexcard query account record and show data in parent flexcard.  

 

Note: There are two ways to pass data to a child FlexCard in Vlocity:

  1. Using Data Node:

    • Data Nodes are utilized to query and pass data to child FlexCards. They allow you to fetch specific data from Salesforce and provide it to the child FlexCard for display or processing.
  2. Using Attributes:

    • Attributes serve as parameters that can be passed to a child FlexCard. They enable dynamic customization by allowing you to pass values directly to the child FlexCard.
    • we can pass specified values in child flexcard from parent flexcard. 

Step 1: Creating a Child FlexCard with a Query for Account Data:

  • In this step, a child FlexCard is configured to query account data. This involves defining the necessary Data Nodes or Attributes to fetch and pass the relevant information to the child FlexCard. 
FlexCard
In Child FlexCard

Step 2: Configuring Child Card in Parent FlexCard:

  1. Make Is Child Card = true:

    • Set the property “Is Child Card” to true for the FlexCard that you want to designate as a child. This configuration is essential to establish the parent-child relationship.
  2. Accessing Parent Node in Child FlexCard:

    • To access data from the parent FlexCard in the child FlexCard, use the syntax: {Parent.attributeName}. Replace attributeName with the specific attribute or data node you want to reference from the parent.
  3. In Parent FlexCard, Drag a Child Card onto the Canvas:

    • In the parent FlexCard configuration, add a CHILD CARD component to the canvas. This component represents the child FlexCard within the parent FlexCard.
FlexCard
In Parent Card
FlexCard
On Parent Setup Panel

On parent flexcard preview tab 

FlexCard
On preview tab

1 thought on “How to Pass Data Parent FlexCard to Child FlexCard”

  1. Pingback: How to use Flexcard Context Variables (salesforce / vlocity)

Comments are closed.

Scroll to Top