What are the Global Keywords in Salesforce?

0 votes
453 views
Anonymous User asked 05-Feb-2018 in SalesForce by Anonymous User

What are the Global Keywords in Salesforce?

1 Answer

0 votes
Anonymous User answered 05-Feb-2018 by Anonymous User

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.