Expression Variable Reference

There are a number of predefined variables in the expression language. The following list all of the available variables:

(v2.6.0+)

Table 1. 

Variable Description Usage
NOW Current day and time  
TODAY Current day at midnight (12:00 am)  
THIS_MINUTE    
NEXT_MINUTE Now + 1 minute  
PREV_MINUTE Now + 1 minute  
THIS_HOUR This hour at 0 minutes  
NEXT_HOUR THIS_HOUR + 1 hour  
PREV_HOUR THIS_HOUR - 1 hour  
NEXT_DAY Today + 1 day  
THIS_YEAR The first day of this year at midnight (12:00am)  
NEXT_YEAR THIS_YEAR + 1 year  
PREV_YEAR THIS_YEAR - year  
THIS_MONTH the first day of this month at midnight (12:00am)  
NEXT_MONTH THIS_MONTH + 1 month  
PREV_MONTH THIS_MONTH - 1 month  
NEXT_***DAY Replace *** with a particular day of the week NEXT_MONDAY: the next day that is a Monday at midnight
PREV_***DAY Replace *** with a particular day of the week PREV_SATURDAY: the last day that was a Saturday at midnight
**_DAY_AGO Replace ** with any number between 1 and 12 10_DAY_AGO: today - 10 days
**_DAY_AHEAD Replace ** with any number between 1 and 12 5_DAY_AHEAD: today + 5 days
**_WEEK_AGO Replace ** with any number between 1 and 12 same usage as **_DAY_AGO
**_WEEK_AHEAD Replace ** with any number between 1 and 12 same usage as **_DAY_AHEAD
**_MONTH_AGO Replace ** with any number between 1 and 12 same usage as **_DAY_AGO
**_MONTH_AHEAD Replace ** with any number between 1 and 12 same usage as **_DAY_AHEAD
**_YEAR_AGO Replace ** with any number between 1 and 12 same usage as **_DAY_AGO
**_YEAR_AHEAD Replace ** with any number between 1 and 12 same usage as **_DAY_AHEAD


These variables can be used for to refer to state information in searches. This expression will retrieve all the login information for the current user.

They can also be used to find items between certain dates. This expression will retrieve all snapshots for this week starting at Sunday.

The following are shorthands that do not require a starting point or environment sobject. They can be used in an absolute expression:

The following are shorthands that require a starting point or environment sobject:

The following variables are only used in Naming. Refer to the file naming section for details.