OMNISTUDIO-DEVELOPER practice question 11 of 15

A developer has a requirement to create a child FlexCard that contain all of its parent FlexCard’s records in a Datatable.

Full set: 86 questions
Answer options
A: {Records[0]}
B: {Records} Correct answer
C: {Params records}
D: {recordId}
Correct Answer:
B. {Records}
Explanation

To display all records from a parent FlexCard in a child FlexCard's Datatable, the entire array of records must be passed. In the parent FlexCard's data JSON, the array of records is typically stored in a node named Records. The syntax {Records} is used in the parent FlexCard's configuration for the child component to pass this entire array as an attribute. The child FlexCard can then use this attribute as the data source for its Datatable element, fulfilling the requirement.

Why Incorrect

A. {Records[0]}: This syntax passes only the first object (at index 0) from the Records array, not the entire list of records as required by the Datatable.
C. {Params.records}: The {Params} context variable is used to access attributes passed to the FlexCard from its container (e.g., a Lightning Page), not from a parent FlexCard's data source.
D. {recordId}: This passes the Salesforce ID of the record the parent FlexCard is running in context of. It does not pass the data records fetched by the parent's data source.

References

1. Salesforce Help, OmniStudio Documentation: Pass Data Between a Parent and Child FlexCard. This document explicitly states, "To pass the entire data array from the parent to the child, in the Value field, enter {records}." This directly supports passing the entire record set to the child.

2. Salesforce Help, OmniStudio Documentation: FlexCards Data JSON. This guide explains the structure of the data JSON available to a FlexCard. It shows that the results from a data source are typically available in a top-level node, such as records, which can be referenced directly.

3. Salesforce Help, OmniStudio Documentation: Display a List of Records with the Datatable Element in a FlexCard. This document details the Datatable element's configuration, noting that its Records property requires an array of data, which is what {Records} from the parent would provide.

Scroll to Top