---
schema_version: "1"
id: fc708c1c6b60161fabf324b1a21fef50c56b42e63d7e9737f0ffbb19901c3884
title: FormulaGlobal Enum
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_enum_formulaeval_FormulaGlobal.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_enum_formulaeval_FormulaGlobal.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 6566b919eb8361431fe797afa0c0fc7fe93ed22fab3ac5d88d95dd7a671106e7
description: Specifies a global variable that references data in your organization in the withGlobalVariables(formulaGlobals) method.
---
# FormulaGlobal Enum

Specifies a global variable that references data in your organization in the withGlobalVariables(formulaGlobals) method.

## Enum Values

The following are the values of the FormulaEval.FormulaGlobal enum.

| Value | Description |
| --- | --- |
| CUSTOMMETADATA | A custom metadata record. |
| LABEL | A global variable to use when referencing a custom label. |
| ORGANIZATION | A global variable to use when referencing information about your company profile, such as organization’s city, fax, ID, or other details. |
| PERMISSION | A global variable to use when referencing information about the current user’s custom permission access. |
| PROFILE | A global variable to use when referencing information about the current user’s profile, such as license type or name. |
| SETUP | A global variable to use when referencing a custom setting of type hierarchy. |
| SYSTEM | A global variable that exposes OriginDateTime and represents the literal value of 1900-01-01 00:00:00. Use this global variable when performing date/time offset calculations, or to assign a literal value to a date/time field. |
| USER | A global variable to use when referencing information about the current user, such as alias, title, and ID. |
| USERROLE | A global variable to use when referencing information about the current user’s role, such as role name, description, and ID. |