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 questionsTo 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.
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.
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.
Keep practicing
Take the free OMNISTUDIO-DEVELOPER practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other OMNISTUDIO-DEVELOPER practice questions
- Question 3A developer creates an OmniScript to update billing information.After analyzing the diffe…
- Question 4A developer needs to limit the of a DataRaptorExtract to a maximum of one result. How sho…
- Question 5A developer examines data received from an external data source. The data is nested two l…
- Question 6A company wants to allow agents to send customers a quote for signature. The quote is a d…
- Question 7A developer needs to change some field labels on a FlexCard. The FlexCard is currently de…
- Question 8In an Integration Procedure, a developer needs to perform a multi-step calculation on eve…
