ADM-201 · Question #179
An administrator created a record trigger flow to update contacts. How should the administrator reference the values of the active record the flow is running on?
The correct answer is D. Use the Get Records element to find the Id. In a record-triggered flow designed to update contacts, if the administrator needs to retrieve specific contact records or related records from the database to access their values, the Get Records element is used.
Question
An administrator created a record trigger flow to update contacts. How should the administrator reference the values of the active record the flow is running on?
Options
- AUse the SRecord global variable.
- BUse the {!Contact. Id} global variable.
- CUse the {lAccountld} record variable.
- DUse the Get Records element to find the Id.
How the community answered
(27 responses)- B4% (1)
- C4% (1)
- D93% (25)
Why each option
In a record-triggered flow designed to update contacts, if the administrator needs to retrieve specific contact records or related records from the database to access their values, the Get Records element is used.
While '$Record' is the correct global variable for the triggering record, 'SRecord' is not the standard or correct notation in Salesforce Flow.
`{{!Contact.Id}}` is not a standard or correct global variable syntax for referencing the triggering record's ID or values within a Salesforce Flow.
`{{lAccountld}}` refers to an Account ID and is not a general mechanism to reference values of the active record a flow is running on, especially if the flow is on the Contact object.
The Get Records element allows an administrator to query the database to find one or more records that meet specified criteria, enabling the flow to access their field values for subsequent updates, particularly useful if fetching related data or re-querying for current record values under specific conditions.
Concept tested: Flow record retrieval
Source: https://help.salesforce.com/s/articleView?id=sf.flow_ref_elements_data_get.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.