Salesforce Certified Platform App Builder — Question 167

Which of the following represent correct syntax to display first name from global variable user?

Answer options

Correct answer: B

Explanation

The correct syntax to access the first name from the global variable user is $User.FirstName, as it uses the appropriate syntax for referencing global variables in the system. Options A and C use incorrect syntax without the dollar sign, while option D includes unnecessary syntax that does not apply in this context.