CRT-450 Exam QuestionsBrowse all questions from this exam

CRT-450 Exam - Question 7


Which two Apex data types can be used to reference a Salesforce record ID dynamically? (Choose two.)

Show Answer
Correct Answer: BD

The Apex data types that can be used to reference a Salesforce record ID dynamically are sObject and String. An sObject is a flexible Apex data type that can represent any Salesforce object, allowing developers to dynamically reference and manipulate these records. A String can also store a record ID as a simple text representation, making it a versatile type for dynamic ID references. ENUM and External ID do not fit the criteria because ENUM cannot store IDs and External ID is used for integration purposes, not for referencing Salesforce record IDs.

Discussion

13 comments
Sign in to comment
Ak_2020Options: BD
Jun 21, 2020

First, let me explain the options that I rejected as Answer 1 - External Id: - External Id can be Text, Email, Number so it cannot refer the record Id if the type is Number OR Email 2 - ENUM: - we can not store the id in Enumeration Now, coming to your question sObject is the universal object in Salesforce which contains an Object that may be Standard one or Custom one and believe you already are already familiar about this. And we can store any object in sObject we can get the Id as well. So the ans is String and sObject

rakchOptions: BD
Dec 8, 2020

Which two Apex data types can be used to reference a Saleforce record ID dynamically ? A. sObject B. String C. ENUM D. External ID Ans: A,B

questmajorOptions: BD
Feb 24, 2022

Enum cannot store ID

nooxOptions: BD
Dec 21, 2021

B,D are correct

sv011Options: BD
Jul 18, 2022

b,d correct

ishanjn05Options: BD
Jul 27, 2022

sObject and String are the two apex date types used for reference a sales force record ID dynamically.

hoangtuyen2000
Apr 5, 2023

What is the correct answer to this question? The highly voted or correct answer given by the system?

danielarroOptions: BD
Nov 10, 2023

Enum cannot store ID

helper_rawOptions: BD
Nov 21, 2023

B and D are the correct answers

PriyankNOptions: BD
Feb 26, 2024

Correct options are B and D

Ankit_SwamiOptions: BD
Jun 20, 2024

String and sObject

kimmaayyaaOptions: BD
Jul 27, 2022

Sobject and string BD

jobet1995Options: BD
Dec 18, 2023

Enum Cannot Store ID