PLAT-DEV-210 practice question 14 of 25
A developer creates a Flexcard that displays a contact’s mailing address and passes the contact’s postal code to a child FlexCard. When configuration text elements in the child FlexCard, what syntax should a developer use to refer to the contact’s postal code?
Full set: 103 questionsIn OmniStudio FlexCards, when a parent FlexCard passes data to a child FlexCard, it is done by setting key-value attributes on the child component's instance within the parent. The child FlexCard then accesses these passed-in values using the {Params} context variable. The syntax {Params.postalcode} correctly references the value associated with the postalcode key that was passed from the parent. This mechanism allows for modular and reusable child components that receive their context from a parent.
A. {Postalcode}: This syntax attempts to access a Postalcode field directly from the child FlexCard's own data source, not from a parameter passed by the parent.
B. {Parent.postalcode}: This syntax is used to access data directly from the parent FlexCard's data source. While possible, the standard and intended method for passing specific, isolated values is via the {Params} object.
C. {Records.postalcode}: This syntax is used within a repeating block to access a field from the current record in a list of records (e.g., from a data source that returns an array).
1. Salesforce OmniStudio Documentation: Pass Data from a Parent FlexCard to a Child FlexCard. This official guide states, "To pass data from a parent FlexCard to a child FlexCard, add an attribute to the child FlexCard element on the parent FlexCard. In the child FlexCard, access the data with the {params.attribute} merge field." This directly validates the use of the {Params} syntax.
2. Salesforce Trailhead: OmniStudio FlexCards > Embed a Child FlexCard in a Parent FlexCard. This module provides a step-by-step tutorial demonstrating the configuration. In the "Pass an Attribute to the Child FlexCard" section, it explicitly instructs the user to set an attribute on the parent and then use the {params.attributeName} syntax in the child to retrieve the value.
Keep practicing
Take the free PLAT-DEV-210 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PLAT-DEV-210 practice questions
- Question 1A developer creates a DataRaptor Extract to retrieve data to pass to an external service.…
- Question 3When launching an OmniScript from an action on a FlexCard, the OmniScript displays, but n…
- Question 4A developer is creating a FlexCard for a new Community page. The FlexCard will display ca…
- Question 5A developer needs to use the COUNTIF function to process data entered by the user in an O…
- Question 6A developer is configuring the API URL in an HTTP Action element within an Integration pr…
- Question 7A developer needs to limit the output of a Data Mapper Extract to a maximum of one result…
