nerdexam
Salesforce

CRT-101 · Question #60

An administration needs to store the ID of record type of later use in a flow. Which kind of variable should the administrator use?

The correct answer is D. Record variable. In Salesforce Flow, a Record variable stores an entire sObject record and all of its fields-including the Id field. To store and later reference a Record Type ID, the administrator should use a Record variable typed to the RecordType object. This allows the flow to retrieve the…

Workflow/Process Automation

Question

An administration needs to store the ID of record type of later use in a flow. Which kind of variable should the administrator use?

Options

  • ABoolean variable
  • BText variable
  • CID variable
  • DRecord variable

How the community answered

(41 responses)
  • A
    12% (5)
  • B
    7% (3)
  • C
    2% (1)
  • D
    78% (32)

Explanation

In Salesforce Flow, a Record variable stores an entire sObject record and all of its fields-including the Id field. To store and later reference a Record Type ID, the administrator should use a Record variable typed to the RecordType object. This allows the flow to retrieve the RecordType record (via a Get Records element) and store the full record, then access its Id field wherever needed downstream. A Boolean variable holds only true/false. A Text variable could technically store an 18-character ID string, but it is not the semantically correct or recommended variable type for this use case. There is no native 'ID variable' type in Salesforce Flow.

Topics

#Flow Variables#Record Type#Salesforce Flow#Data Types

Community Discussion

No community discussion yet for this question.

Full CRT-101 Practice