Salesforce Certified Platform App Builder — Question 338
Universal Containers needs the 18-digit record ID from Opportunity records when exporting data to Excel in order to ensure each record is treated uniquely.
What formula should an app builder use to create this new field?
Answer options
- A. TEXT(Id)
- B. ISNUMBER(Id)
- C. CASESAFEID(Id)
- D. VALUE(Id)
Correct answer: C
Explanation
The correct choice, CASESAFEID(Id), converts the 15-character Salesforce ID into a case-safe 18-character version, ensuring uniqueness in exports. TEXT(Id) simply converts the ID to text but does not ensure it's unique. ISNUMBER(Id) checks if the ID is numeric, which is not applicable here, and VALUE(Id) attempts to convert the ID to a number, which is also inappropriate for record IDs.