What are the Global Keywords in Salesforce?

Asked 05-Feb-2018
Viewed 787 times

1 Answer


0

Global Keywords is one of the Access Modifier that Salesforce provided. Global keywords are used for any method or variable that needs to be referenced outside the application. Global keywords for example User, Url, Components, Current page etc. is used to access various values from components on the page, from User object or from Url or from Current page fields.

Salesforce provides different Global Keywords for each of the Source. And if a method/variable is declared as global, then we need to declare the class as global.

Some of the Global Keywords are as follows:

  • User.
  • Profile.
  • Url.
  • Component.
  • Resource.
  • Current Page.
  • Page Reference etc.