ADM-201 · Question #268
An administrator needs to store the ID of a record type for later use in a flow. Which kind of variable should the administrator use?
The correct answer is C. Text variable. To store the ID of a record type in a flow, the administrator should use a Text variable type.
Question
An administrator needs to store the ID of a record type for later use in a flow. Which kind of variable should the administrator use?
Options
- ARecord variable
- BBoolean variable
- CText variable
- DID variable
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- C94% (30)
Why each option
To store the ID of a record type in a flow, the administrator should use a Text variable type.
A Record variable is used to store an entire Salesforce record, including all its fields, not just a single ID.
A Boolean variable is used to store true or false values, which is not suitable for storing an alphanumeric ID.
Record IDs in Salesforce are alphanumeric strings (e.g., '012xxxxxxxxxxxx'). The Text variable type in Salesforce Flow is designed to store any alphanumeric string value, making it the appropriate choice for holding a record type ID for later use.
There is no standard 'ID variable' type explicitly available in Salesforce Flow; IDs are typically stored using the Text variable type.
Concept tested: Flow variable types for IDs
Source: https://help.salesforce.com/s/articleView?id=sf.flow_ref_resources_variables.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.