ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 398 - Certified Platform Developer II discussion

Report
Export

Universal Containers (UC) has enabled the translation workbench and has translated picklist values.

UC has a custom multi-select picklist field, Products__z, on the Account object that allows sales reps to specify which of UC's products an Account already has. A developer is tasked with writing an Apex method that retrieves Account records, Including product_c field.

What should the developer do to ensure the value of Products__c is in the current user's language?

A.
Set the locale on each record in the SOQL result list.
Answers
A.
Set the locale on each record in the SOQL result list.
B.
Use the locale clause in the SOQL query.
Answers
B.
Use the locale clause in the SOQL query.
C.
Use toLabel1 Products_c in the fields list of the SOQL query.
Answers
C.
Use toLabel1 Products_c in the fields list of the SOQL query.
D.
Call the translate ( ) method on each record in the SOQL result list.
Answers
D.
Call the translate ( ) method on each record in the SOQL result list.
Suggested answer: C
asked 23/09/2024
Heidar Heidari nia
33 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first