Salesforce

Global Variables in classes

Introduction#

In this topic I would like to mention all possible global variables which can be used in Apex code. Like UserInfo Class.

I suggest we just list a global classes/variables and links. If you know about a global class/variable but can’t find a documentation, please provide as much information as possible.

UserInfo

getFirstName() - returns the context user’s first name.
getLastName() - returns the context user’s last name.


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow