Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Platform Developer II Topic 5 Question 93 Discussion

Actual exam question for Salesforce's Platform Developer II exam
Question #: 93
Topic #: 5
[All Platform Developer II Questions]

In an organization that has multi-currency enabled, a developer Is tasked with building a Lighting component that displays the top ten Opportunities most recently accessed by the logged in user. The developer must ensure the Amount and LastModifiedDate field values are displayed according to the user's locale.

What is the most effective approach to ensure values displayed respect the user's locale settings?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Annalee
2 days ago
I'm torn between B and D, but I think D is the cleanest approach. No need to mess with custom formatting when Salesforce can do it for you.
upvoted 0 times
...
Sabina
10 days ago
D is the way to go! The FORMAT() function in SOQL will automatically format the values according to the user's locale. Easy peasy!
upvoted 0 times
...
Eve
13 days ago
I'm not sure about that. I think using a wrapper class to format the values retrieved via SOQL might be a better approach.
upvoted 0 times
...
Daron
14 days ago
I agree with Stephen. Using the FORMAT() function would ensure the values respect the user's locale settings.
upvoted 0 times
...
Stephen
17 days ago
I think the most effective approach would be to use the FORMAT() function in the SOQL query.
upvoted 0 times
...

Save Cancel