GlideSystem - Global
-
- UpdatedJan 30, 2025
- 39 minutes to read
- Yokohama
- API reference
The GlideSystem API, which is referred to by the variable name
gs
in any server-side JavaScript, provides a number of convenient methods to
get information about the system, the current logged in user, and date/time information.
Many of the GlideSystem methods facilitate the easy inclusion of dates in query ranges, and are most often used in filters and reporting.
GlideSystem - addErrorMessage(Object message)
Adds an error message for the current session.
Use getErrorMessages() to retrieve a list of error messages currently being shown.
Name | Type | Description |
---|---|---|
message | Object | The message to add. |
Type | Description |
---|---|
void |
Example
Scoped equivalent
To use the addErrorMessage() method in a scoped application, use the corresponding scoped method: addErrorMessage().
GlideSystem - addInfoMessage(Object message)
Adds an info message for the current session.
Use getInfoMessages() to retrieve the list of info messages being shown. This method is not supported for asynchronous business rules and cannot be used within transform scripts.
Name | Type | Description |
---|---|---|
message | Object | The message to add. |
Type | Description |
---|---|
void |
Example
Scoped equivalent
To use the addInfoMessage() method in a scoped application, use the corresponding scoped method: addInfoMessage().
GlideSystem - addMessage(String type, Object message)
Adds a message for the current session.
Name | Type | Description |
---|---|---|
type | String | Type of message, such as error or info. |
message | Object | Message to add to the current session. |
Type | Description |
---|---|
void |
Example
GlideSystem - beginningOfLastMonth()
Gets the date and time for the beginning of last month in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The GMT beginning of last month, in the format yyyy-mm-dd hh:mm:ss. |
Example
This example sets the date and time of the GlideDateTime object to the beginning of last month.
Scoped equivalent
To use the beginningOfLastMonth() method in a scoped application, use the corresponding scoped method: beginningOfLastMonth().
GlideSystem - beginningOfLastWeek()
Returns the date and time for the beginning of last week in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of last week. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of last week.
Scoped equivalent
To use the beginningOfLastWeek() method in a scoped application, use the corresponding scoped method: beginningOfLastWeek().
GlideSystem - beginningOfNextWeek()
Returns the date and time for the beginning of next week in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of next week. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of next week.
Scoped equivalent
To use the beginningOfNextWeek() method in a scoped application, use the corresponding scoped method: beginningOfNextWeek().
GlideSystem - beginningOfNextMonth()
Returns the date and time for the beginning of next month in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of next month. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of next month.
Scoped equivalent
To use the beginningOfNextMonth() method in a scoped application, use the corresponding scoped method: beginningOfNextMonth().
GlideSystem - beginningOfNextYear()
Returns the date and time for the beginning of next year in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The GMT beginning of next year, in the format yyyy-mm-dd hh:mm:ss. |
Example
This example sets the value of the current Glide date/time record to the beginning of next year.
Scoped equivalent
To use the beginningOfNextYear() method in a scoped application, use the corresponding scoped method: beginningOfNextYear().
GlideSystem - beginningOfThisMonth()
Returns the date and time for the beginning of the current month in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of the current month. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of this month.
Scoped equivalent
To use the beginningOfThisMonth() method in a scoped application, use the corresponding scoped method: beginningOfThisMonth().
GlideSystem - beginningOfThisQuarter()
Returns the date and time for the beginning of the current quarter in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of the current quarter. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of the current quarter.
Scoped equivalent
To use the beginningOfThisQuarter() method in a scoped application, use the corresponding scoped method: beginningOfThisQuarter().
GlideSystem - beginningOfThisWeek()
Returns the date and time for the beginning of this week in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of the current week. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of the current week.
Scoped equivalent
To use the beginningOfThisWeek() method in a scoped application, use the corresponding scoped method: beginningOfThisWeek().
GlideSystem - beginningOfThisYear()
Returns the date and time for the beginning of this year in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of the current year. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of the current year.
Scoped equivalent
To use the beginningOfThisYear() method in a scoped application, use the corresponding scoped method: beginningOfThisYear().
GlideSystem - beginningOfToday()
Retrieves the date and time for the beginning of today in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of the current day. Format: yyyy-mm-dd hh:mm:ss |
Example
This example sets the value of the current Glide date/time record to the beginning of the current day.
GlideSystem - beginningOfTomorrow()
Retrieves the (UTC) beginning of tomorrow adjusted for the timezone of the current session.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT beginning of tomorrow. Format: yyyy-mm-dd hh:mm:ss |
Example
GlideSystem - beginningOfYesterday()
Retrieves the date and time for the beginning of yesterday in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The GMT beginning of yesterday, in the format yyyy-mm-dd hh:mm:ss. |
Example
GlideSystem - calDateDiff(String startDate, String endDate, Boolean numericValue)
Calculate the difference between two dates using the default calendar.
Calendars are now legacy. If Schedules are being used, see the 'Calculate during a given schedule' section of the topic Useful scheduling scripts.
Name | Type | Description |
---|---|---|
startDate | String | Starting date to compare in the current user's date format. |
endDate | String | Ending date to compare in the current user's date format. |
numericValue | Boolean | Flag that indicates ther format of the returned time value. Valid values:
|
Type | Description |
---|---|
String | If the numericValue parameter is true, returns the
difference between the two dates as an integer number of seconds. If false, returns the difference between the two dates in the format ddd hh:mm:ss. |
Example
GlideSystem - dateDiff(String startDate, String endDate, Boolean numericValue)
Calculates the difference between two dates.
This method expects the earlier date as the first parameter and the later date as the second parameter; otherwise, the method returns the difference as a negative value. Use getDisplayValue() to convert the strings to the expected format.
This method expects parameters in the user/system date time format, which may not be the same as the internal format. Using parameters in formats other than the user/system date time format may return invalid results.
If you are working with GlideDateTime objects use the GlideDateTime subtract() method instead of dateDiff().
Name | Type | Description |
---|---|---|
startDate | String | The starting date to compare in the current user's date format. |
endDate | String | The ending date to compare in the current user's date format. |
numericValue | Boolean | If true, the return value will be formatted in number of seconds; if false the return value will be formatted ddd hh:mm:ss. |
Type | Description |
---|---|
String | If the numericValue parameter is true, returns the difference between the two dates as an integer number of seconds; if false, returns the difference between the two dates in the format ddd hh:mm:ss. |
Example
GlideSystem - dateGenerate(String date, String range)
Generates a date and time for the specified date in GMT.
Name | Type | Description |
---|---|---|
date | String | Date to generate in GMT. Format: yyyy-mm-dd |
range | String | Start, end, or a time. Format: 24-hour hh:mm:ss |
Type | Description |
---|---|
String | Generated date and time. If the range is start, the returned value is yyyy-mm-dd 00:00:00. If range is end the return value is yyyy-mm-dd 23:59:59. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows using dateGenerate() to set the start date when querying records in the Incident table.
Output:
Scoped equivalent
To use the dateGenerate() method in a scoped application, use the corresponding scoped method: dateGenerate().
GlideSystem - daysAgo(Number days)
Returns a date and time for a certain number of days ago.
Name | Type | Description |
---|---|---|
days | Number | Number of days |
Type | Description |
---|---|
String | GMT of the specified number of days ago. Format: yyyy-mm-dd hh:mm:ss. |
Example
Scoped equivalent
To use the daysAgo() method in a scoped application, use the corresponding scoped method: daysAgo().
GlideSystem - daysAgoEnd(Number days)
Returns a date and time for the end of the day a specified number of days ago.
Name | Type | Description |
---|---|---|
days | Number | Integer number of days |
Type | Description |
---|---|
String | The GMT end of the day in the format yyyy-mm-dd hh:mm:ss. |
Example
This example shows using daysAgoEnd() to set the end date when querying records in the Incident table.
Scoped equivalent
To use the daysAgoEnd() method in a scoped application, use the corresponding scoped method: daysAgoEnd().
GlideSystem - daysAgoLocal(Number days)
Returns the date and time of the beginning of the day for the specified number of days ago. The returned date and time reflect the time zone of the current session (local time).
Name | Type | Description |
---|---|---|
days | Number | Number of days ago |
Type | Description |
---|---|
String | Local date and time for the beginning of the day in the user-defined date time format. If the date time format is not modified from its initial value the format is yyyy-mm-dd hh:mm:ss. |
Example
GlideSystem - daysAgoStart(Number days)
Returns a date and time for the beginning of the day a specified number of days ago.
Name | Type | Description |
---|---|---|
days | String | Integer number of days |
Type | Description |
---|---|
String | GMT start of the day in the format yyyy-mm-dd hh:mm:ss |
Example
Scoped equivalent
To use the daysAgoStart() method in a scoped application, use the corresponding scoped method: daysAgoStart().
GlideSystem - endOfLastMonth()
Returns the date and time for the end of last month in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT of the end of last month. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows how to query a report record from the last day of last month.
Scoped equivalent
To use the endOfLastMonth() method in a scoped application, use the corresponding scoped method: endOfLastMonth().
GlideSystem - endOfLastWeek()
Returns the date and time for the end of last week in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT end of last week. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows how to query records opened on the last week of the previous month.
Scoped equivalent
To use the endOfLastWeek() method in a scoped application, use the corresponding scoped method: endOfLastWeek().
GlideSystem - endOfLastYear()
Returns the date and time for the end of last year in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT in format yyyy-mm-dd hh:mm:ss. |
Example
This example shows how to query records created for all records created in the last year.
Scoped equivalent
To use the endOfLastYear() method in a scoped application, use the corresponding scoped method: endOfLastYear().
GlideSystem - endOfNextMonth()
Returns the date and time for the end of next month in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT data and time. Format yyyy-mm-dd hh:mm:ss |
Example
This example shows how to query KB knowledge records created since the beginning of today until the end of next month.
Scoped equivalent
To use the endOfNextMonth() method in a scoped application, use the corresponding scoped method: endOfNextMonth().
GlideSystem - endOfNextWeek()
Returns the date and time for the end of next week in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT date and time for the end of next week. Format yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use endOfNextWeek() in a query to obtain all visitors in the past week.
Scoped equivalent
To use the endOfNextWeek() method in a scoped application, use the corresponding scoped method: endOfNextWeek().
GlideSystem - endOfNextYear()
Returns the date and time for the end of next year in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT date and time for the end of next year. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use endOfNextYear() to set the GlideDateTime object to the end of next year.
Scoped equivalent
To use the endOfNextYear() method in a scoped application, use the corresponding scoped method: endOfNextYear().
GlideSystem - endOfThisMonth()
Returns the date and time for the end of this month in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT date and time for the end of this month. Format yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use endOfThisMonth() to set the GlideDateTime object to the end of the current month.
Scoped equivalent
To use the endOfThisMonth() method in a scoped application, use the corresponding scoped method: endOfThisMonth().
GlideSystem - endOfThisQuarter()
Returns the date and time for the end of this quarter in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT date and time for the end of this quarter. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use endOfThisQuarter() to set the GlideDateTime object to the end of the current month.
Scoped equivalent
To use the endOfThisQuarter() method in a scoped application, use the corresponding scoped method: endOfThisQuarter().
GlideSystem - endOfThisWeek()
Returns the date and time for the end of this week in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT date and time for the end of this week. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use endOfThisWeek() to set the GlideDateTime object to the end of the current month.
Scoped equivalent
To use the endOfThisWeek() method in a scoped application, use the corresponding scoped method: endOfThisWeek().
GlideSystem - endOfThisYear()
Returns the date and time for the end of this year in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT date and time for the end of this year. Format yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use endOfThisYear() to set the GlideDateTime object to the end of the current month.
Scoped equivalent
To use the endOfThisYear() method in a scoped application, use the corresponding scoped method: endOfThisYear().
GlideSystem - endOfToday()
Retrieves the date and time for the end of today in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT in the format yyyy-mm-dd hh:mm:ss. |
Example
GlideSystem - endOfTomorrow()
Retrieves the date and time for the end of tomorrow in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT in the format yyyy-mm-dd hh:mm:ss. |
Example
GlideSystem - endOfYesterday()
Gets the date and time for the end of yesterday in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT in the format (yyyy-mm-dd huh:mm:ss). |
Example
GlideSystem - eventQueue(String name, Object glideRecord, String parm1, String parm2, String queue)
Queues an event for the event manager.
Type | Description |
---|---|
void |
Example
Scoped equivalent
To use the eventQueue() method in a scoped application, use the corresponding scoped method: eventQueue().
GlideSystem - eventQueueScheduled(String name, Object glideRecord, String parm1, String parm2, Object expiration)
Queues an event for the event manager at a specified date and time.
Type | Description |
---|---|
void |
Example
Scoped equivalent
To use the eventQueueScheduled() method in a scoped application, use the corresponding scoped method: eventQueueScheduled().
GlideSystem - flushMessages()
Clears session messages saved using addErrorMessage() or addInfoMessage().
Session messages are shown at the top of the form. In client side scripts, use g_form.clearMessages() to remove session messages.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
void |
Example
This example shows how to parse through and pass back error messages and then clears the messages using flushMessages().
GlideSystem - getAvatar()
Returns the file path to the user's avatar.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The file path to the user's avatar. |
Example
Output:
GlideSystem - getCurrentScopeName()
Returns the name of the current application scope.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Current scope name. |
Example
This example shows how to use getCurrentScopeName() to get the scope of the processor.
Scoped equivalent
To use the getCurrentScopeName() method in a scoped application, use the corresponding scoped method: getCurrentScopeName().
GlideSystem - getDateFormat()
Returns the date format associated with the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The date format associated with the current user. |
Example
The following example returns the date format associated with the user.
Output:
GlideSystem - getDateTimeFormat()
Returns the date and time format associated with the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The date and time format associated with the current user. |
Example
The following example returns the format of the date and time that is associated with the user.
Output:
GlideSystem - getDisplayColumn(String tableName)
Retrieves the display column for the table.
Name | Type | Description |
---|---|---|
tableName | String | Name of the table from which to get the display column name. |
Type | Description |
---|---|
String | Display column name |
Example
GlideSystem - getDisplayValueFor(String tableName, String recordID, String fieldName)
Returns the display value for a specified field on a specified record.
Name | Type | Description |
---|---|---|
tableName | String | Name of the table. |
recordID | String | Sys_id for the record. |
fieldName | String | Name of the field whose display value to return. |
Type | Description |
---|---|
String | Display value for the field. |
Example
This example shows how to use getDisplayValueFor() to return the display value of the number field.
GlideSystem - getErrorMessages()
Returns the list of error messages for the session that were added by addErrorMessage().
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | List of error messages |
Example
This example shows how to parse through and pass back error messages using getErrorMessages().
Scoped equivalent
To use the getErrorMessages() method in a scoped application, use the corresponding scoped method: getErrorMessages().
GlideSystem - getEscapedProperty(String key, Object substituteObject)
Retrieves the property and escapes it for XML parsing.
Name | Type | Description |
---|---|---|
key | String | Key for the property whose value should be returned. |
substituteObject | Object | Optional. Object to return if the property is not found. |
Type | Description |
---|---|
String | Property, or the substituteObject if the property is not found. |
Example
GlideSystem - getImpersonatingUserDisplayName()
Returns the display name of the impersonating user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Display name of the impersonating user. |
Example
This example shows how to obtain the impersonator's user display name.
GlideSystem - getImpersonatingUserName()
Returns the name of the impersonating user or null if not impersonating.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Name of impersonating user |
Example
This example shows how to obtain the impersonator's user name.
GlideSystem - getInfoMessages()
Retrieves the list of info messages for the session that were added by addInfoMessage().
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | List of info messages. |
Example
This example shows how to obtain the information messages.
GlideSystem - getInitials()
Returns the user's initials.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The user's initials. |
Example
Output:
GlideSystem - getMessage(String messageID, Object args)
Retrieves translated messages from the Message [sys_ui_message] table to display in a UI.
If the specified message identifier (key) exists in the Message [sys_ui_message] table for the current language, the method returns the translated message. If the specified message identifier does not exist for the current language, the method returns the English version of the message. If the message identifier does not exist in the table, then it returns the message ID.
For additional information about the Message table, see Message table.
Name | Type | Description |
---|---|---|
messageID | String | Message identifier. You can locate this value in the Key field of the Message [sys_ui_message] table. Note the Key field may look exactly like the actual message string. |
args | Object | Optional. List of strings or other values defined by
java.text.MessageFormat that replace the variables within the specified message.
For example: In this example '{0}' is replaced with the content of current.action.name. Note: The passed in values are not
translated. They are inserted verbatim in the message. |
Type | Description |
---|---|
String | Requested UI message. |
Example
This example shows the message returned for the current user when Spanish is the current language.
Output:
Example
This example shows how to replace a single variable within a message.
Output:
Example
This example shows how to replace multiple variables within a message.
Output:
Scoped equivalent
To use the getMessage() method in a scoped application, use the corresponding scoped method: getMessage().
GlideSystem - getMessageS(String messageID, Object args)
Retrieves translated messages to display in the UI and escapes all ticks (').
If the specified message identifier (key) exists in the Message [sys_ui_message] table for the current language, the method returns the translated message. If the specified message identifier does not exist for the current language, the method returns the English version of the message. If the message identifier does not exist in the table, then it returns the message ID.
For additional information about the Message table, see Message table.
Useful if you are inserting into a JavaScript expression from Jelly.
Name | Type | Description |
---|---|---|
MessageID | String | Message identifier. You can locate this value in the Key field of the Message [sys_ui_message] table. Note the Key field may look exactly like the actual message string. |
args | Object | Optional. List of strings or other values defined by
java.text.MessageFormat that replace the variables within the specified message.
For example: In this example '{0}' is replaced with the content of current.action.name. Note: The passed in values are not
translated. They are inserted verbatim in the message. |
Type | Description |
---|---|
String | Specified message with ticks escaped. |
Example
Output:
GlideSystem - getMessageLang(String message, String language, Array args)
Translates the specified message into the specified language.
You can also embed variables in the passed message. The method resolves those variables with the values passed in the args array.
Name | Type | Description |
---|---|---|
message | String | Message to translate. |
language | String | Language in which to translate the message. Format: BCP 47 standard |
args | Array | Optional. List of strings or other values defined by java.text.MessageFormat that replace the variables within the specified message. For example: In this example '{0}' is replaced with the content of current.action.name. Note: The passed in values
are not translated. They are inserted verbatim in the message. |
Type | Description |
---|---|
String | Translated message. |
Example
The following example transforms the specified message into Spanish.
Output:
Example
The following example shows how to replace variables within a message.
Output:
GlideSystem - getNodeName(Object obj, Number index)
Returns the node name for the specified index.
Name | Type | Description |
---|---|---|
obj | Object | Object to examine. |
index | Number | Index from which to obtain the node name. |
Type | Description |
---|---|
String | Node's name |
Example
GlideSystem - getNodeValue(Object obj, Number index)
Returns the node value for the specified index.
Name | Type | Description |
---|---|---|
obj | Object | Object to examine. |
index | Number | Index from which to get the node valu.e |
Type | Description |
---|---|
Object | Node value |
Example
GlideSystem - getPreference(String key, Object default)
Returns the specified user preference.
Name | Type | Description |
---|---|---|
key | String | Key for the preference. |
default | Object | Default value to use if the specified preference is not found. |
Type | Description |
---|---|
String | Preference value. If no preference, returns the specified default value. |
Example
GlideSystem - getProperty(String key, Object alt)
Returns the value of a Glide property. If the property is not found, returns the specified alt value.
Name | Type | Description |
---|---|---|
key | String | Key for the property whose value should be returned. |
alt | Object | Optional. Alternate object to return if the property is not found. |
Type | Description |
---|---|
String | Value of the Glide property, or the alternate object defined above. |
Example
GlideSystem - getScriptError(String script)
Returns the script error found in the specified script, if there is one.
Name | Type | Description |
---|---|---|
script | String | Script to check for errors. |
Type | Description |
---|---|
String | Error message. Null if there is no error. |
Example
GlideSystem - getSession()
Returns a GlideSession object.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
GlideSession Object | GlideSession object for the current session |
Example
Scoped equivalent
To use the getSession() method in a scoped application, use the corresponding scoped method: getSession().
GlideSystem - getSessionID()
Returns the GlideSession session ID.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Session ID |
Example
Output
Scoped equivalent
To use the getSessionID() method in a scoped application, use the corresponding scoped method: getSessionID.
GlideSystem - getStyle(String tableName, String fieldName, String fieldValue)
Returns the style defined for the table, field, and field value.
Name | Type | Description |
---|---|---|
tableName | String | Table name |
fieldName | String | Field name |
fieldValue | String | Field value |
Type | Description |
---|---|
String | Style of the specified field. |
Example
GlideSystem - getTimeFormat()
Returns the time format associated with the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Time format associated with the current user. |
Example
The following code example shows how to call this method.
Output:
GlideSystem - getUser()
Returns a reference to the user object for the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
GlideUser | Reference to a user object for the current user. |
Example
The following example shows how to get the current user object.
Example
The following example shows how to check whether the current user has the workflow_admin role.
Scoped equivalent
To use the getUser() method in a scoped application, use the corresponding scoped method: getUser().
GlideSystem - getUserDisplayName()
Gets the display name of the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The name field of the current user. For example, this method returns Abel Tuter as opposed to abel.tuter. |
Example
This example gets the current user's display name.
Output:
Scoped equivalent
To use the getUserDisplayName() method in a scoped application, use the corresponding scoped method: getUserDisplayName().
GlideSystem - getUserID()
Returns the sys_id of the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Sys_id of the current user. |
Example
This example gets the current user's sys_id.
Scoped equivalent
To use the getUserID() method in a scoped application, use the corresponding scoped method: getUserID().
GlideSystem - getUserName()
Returns the user name of the current user.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The user name of the current user. For example, this method returns abel.tuter as opposed to Abel Tuter. |
Example
This example gets the user name of the current user and an impersonated user.
Scoped equivalent
To use the getUserName() method in a scoped application, use the corresponding scoped method: getUserName().
GlideSystem - getUserNameByUserID(String user_id)
Returns the user display name based on a provided user login name.
Name | Type | Description |
---|---|---|
user_id | String | Login name of the user from which to retrieve the associated display name. |
Type | Description |
---|---|
String | Display name of the requested user. Note: If this method can't find a user with
the requested ID, it returns the input value provided. |
Example
The following example shows how to get the specified user's display name.
GlideSystem - getXMLNodeList(String xml)
Constructs an array of all the nodes and values in an XML document.
Name | Type | Description |
---|---|---|
xml | String | XML document to parse. |
Type | Description |
---|---|
Array list | List of names and values of the outer most XML node. |
Example
The following example shows how to get a list of XML nodes and their associated values in an array list.
GlideSystem - getXMLText(String xml, String xpathQuery)
Returns the XML text for the first element in the XML string that matches the XPath query.
Name | Type | Description |
---|---|---|
xml | String | XML string to search. |
xpathQuery | String | XPath query to match. |
Type | Description |
---|---|
String | XML node matching the search parameters. |
Example
The following example shows how to get the value of a specified XML element within a passed-in node.
GlideSystem - hasRole(String roleName)
Determines if the current user has at least one of the passed-in roles.
Name | Type | Description |
---|---|---|
roleName | String | Comma-separated list of roles. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the current user has at least one of the specified
roles. Possible values:
|
Example
The following example shows how to check whether the current user has the admin or groups_admin role.
Scoped equivalent
To use the hasRole() method in a scoped application, use the corresponding scoped method: hasRole().
GlideSystem - hasRoleInGroup(Object roleName, Object group)
Determines if the current user has the specified role within a specified group.
Name | Type | Description |
---|---|---|
roleName | Object | Name of the role. |
group | Object | Sys_id of the group to check for the specified role. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the current user has the specified role in the
specified group. Possible values:
|
Example
The following example shows how to check whether the sys_user_group group has the role_name role.
GlideSystem - hoursAgo(Number hours)
Returns a date and time for the specified number of hours ago. The returned value is adjusted for the time zone of the instance.
Name | Type | Description |
---|---|---|
hours | Number | Number of hours ago. |
Type | Description |
---|---|
String | UTC date and time for the specified number of hours ago. Format: yyyy-mm-dd hh:mm:ss |
Example
Scoped equivalent
To use the hoursAgo() method in a scoped application, use the corresponding scoped method: hoursAgo().
GlideSystem - hoursAgoEnd(Number hours)
Returns a date and time for the end of the hour for the specified number of hours ago. The returned value is adjusted for the time zone of the instance.
Name | Type | Description |
---|---|---|
hours | Number (Integer) | Number of hours ago. |
Type | Description |
---|---|
String | UTC date and time for the end of the specified number of hours ago. Format: yyyy-mm-dd hh:mm:ss |
Example
Scoped equivalent
To use the hoursAgoEnd() method in a scoped application, use the corresponding scoped method: hoursAgoEnd().
GlideSystem - hoursAgoStart(Number hours)
Returns a date and time for the start of the hour for the specified number of hours ago. The returned value is adjusted for the time zone of the instance.
Name | Type | Description |
---|---|---|
hours | Number | Number of hours ago. |
Type | Description |
---|---|
String | UTC date and time for the end of the specified number of hours ago. Format: yyyy-mm-dd hh:mm:ss |
Example
Scoped equivalent
To use the hoursAgoStart() method in a scoped application, use the corresponding scoped method: hoursAgoStart().
GlideSystem - isFirstDayOfMonth(Object date)
Checks whether the date in the specified date object is the first day of the month.
Name | Type | Description |
---|---|---|
date | Object | Date object on which to check the date, such as GlideDateTime or GlideDate. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the date in the specified date object is the first
day of the month. Possible values:
|
Example
This example show how to determine whether the date in the specified date object is the first day of the month.
GlideSystem - isFirstDayOfWeek(Object date)
Checks whether the date in the specified date object is the first day of the week. This method uses the ISO standard of Monday being the first day of the week.
Name | Type | Description |
---|---|---|
date | Object | Date object on which to check the date, such as GlideDateTime or GlideDate. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the date in the current date object is the first
day of the week (Monday). Possible values:
|
Example
This example show how to determine whether the date in the specified date object is the first day of the week.
GlideSystem - isFirstDayOfYear(Object date)
Checks whether the date in the specified date object is the first day of the year.
Name | Type | Description |
---|---|---|
date | Object | Date object on which to check the date, such as GlideDateTime or GlideDate. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the date in the specified date object is the first
day of the year. Possible values:
|
Example
This example show how to determine whether the date in the specified date object is the first day of the year.
GlideSystem - isInteractive()
Checks if the current session is interactive.
An example of an interactive session is when a user logs in using the log-in screen. An example of a non-interactive session is using a SOAP request to retrieve data.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Flag that indicates whether the session is interactive. Possible values:
|
Example
Scoped equivalent
To use the isInteractive() method in a scoped application, use the corresponding scoped method: isInteractive().
GlideSystem - isLastDayofMonth(Object date)
Checks whether the date in the specified date object is the last day of the month.
Name | Type | Description |
---|---|---|
date | Object | Date object on which to check the date, such as GlideDateTime or GlideDate. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the date in the specified date object is the last
day of the month. Possible values:
|
Example
This example show how to determine whether the date in the specified date object is the last day of the month.
GlideSystem - isLastDayOfWeek(Object date)
Checks whether the date in the specified date object is the last day of the week. This method uses the ISO standard of Sunday being the last day of the week.
Name | Type | Description |
---|---|---|
date | Object | Date object on which to check the date, such as GlideDateTime or GlideDate. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the date in the current date object is the last day
of the week (Sunday). Possible values:
|
Example
This example show how to determine whether the date in the specified date object is the last day of the week.
GlideSystem - isLastDayOfYear(Object date)
Checks whether the date in the specified date object is the last day of the year.
Name | Type | Description |
---|---|---|
date | Object | Date object on which to check the date, such as GlideDateTime or GlideDate. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the date in the current date object is the last day
of the year. Possible values:
|
Example
This example show how to determine whether the date in the specified date object is the last day of the year.
GlideSystem - isLoggedIn()
Determines if the current user is currently logged in.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Flag that indicates whether the current user is logged in. Possible
values:
|
Example
This example show how to determine whether the current user is logged in.
Scoped equivalent
To use the isLoggedIn() method in a scoped application, use the corresponding scoped method: isLoggedIn().
GlideSystem - isMobile()
Determines whether the request came from a mobile device.
You can use this method in UI action conditions and business rules.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Boolean | Flag that indicates whether the request came from a mobile device. Possible
values:
|
Example
This example show how to determine whether the current device is a mobile device.
Scoped equivalent
To use the isMobile() method in a scoped application, use the corresponding scoped method: isMobile().
GlideSystem - lastWeek()
Returns the date and time one week ago in GMT.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Date and time one week ago. Format: yyyy-MM-dd hh:mm:ss |
Example
This example show how to obtain the date that is one week from the date in the current date object.
GlideSystem - log(String message, String source)
Logs a message to the system log and saves it to the syslog table.
Name | Type | Description |
---|---|---|
message | String | Message to log. |
source | String | Optional. Source of the message. |
Type | Description |
---|---|
void |
Example
The following example shows how to post a log entry using constants and variables.
GlideSystem - logError(String message, String source)
Logs an error to the system log and saves it to the syslog table.
Name | Type | Description |
---|---|---|
message | String | Error message to log. |
source | String | Optional. Source of the message. |
Type | Description |
---|---|
void |
Example
The following example logs an error if the Incident table cannot be found.
GlideSystem - logWarning(String message, String source)
Logs a warning to the system log and saves it to the syslog table.
Name | Type | Description |
---|---|---|
message | String | Message to log. |
source | String | Optional. Source of the message. |
Type | Description |
---|---|
void |
Example
The following example logs a warning if the Incident table cannot be found.
GlideSystem - minutesAgo(Number minutes)
Returns a date and time for the specified number of minutes ago.
Name | Type | Description |
---|---|---|
minutes | Number | Number of minutes in the past to return. |
Type | Description |
---|---|
String | UTC date and time for the specified number of minutes ago. Format: yyyy-mm-dd hh:mm:ss |
Example
This example shows how to use the minutesAgo() method in an addQuery() call.
GlideSystem - minutesAgoEnd(Number minutes)
Returns a date and time for the end of the minute a certain number of minutes ago.
Name | Type | Description |
---|---|---|
minutes | Number | Integer number of minutes ago, such as 5 or 11. |
Type | Description |
---|---|
String | GMT the specified number of minutes ago, at the end of the minute (59 seconds).
Format: yyyy-mm-dd hh:mm:ss |
Example
The following example displays the current date and time and the date and time 30 minutes ago at the end of the minute in GMT.
Output
Scoped equivalent
To use the minutesAgoEnd() method in a scoped application, use the corresponding scoped method: minutesAgoEnd().
GlideSystem - minutesAgoStart(Number minutes)
Returns a date and time for the start of the minute a certain number of minutes ago.
Name | Type | Description |
---|---|---|
minutes | Number | Integer number of minutes ago, such as 15 or 112. |
Type | Description |
---|---|
String | GMT the specified number of minutes ago, at the start of the minute. Format: yyyy-mm-dd hh:mm:ss |
Example
The following example displays the current date and time and the date and time 30 minutes ago at the start of the minute in GMT.
Output
Scoped equivalent
To use the minutesAgoStart() method in a scoped application, use the corresponding scoped method: minutesAgoStart().
GlideSystem - monthsAgo(Number months)
Returns a date and time for a certain number of months ago.
Name | Type | Description |
---|---|---|
months | Number | Integer number of months ago. |
Type | Description |
---|---|
String | GMT of the specified number of months ago at the exact same time. Format: yyyy-mm-dd hh:mm:ss |
Example
The following example displays the current date and time and the date and time one month ago at the same time in GMT.
Output
Scoped equivalent
To use the monthsAgo() method in a scoped application, use the corresponding scoped method: monthsAgo().
GlideSystem - monthsAgoEnd(Number months)
Returns the date and time for the last day of the month a specified number of months ago.
Name | Type | Description |
---|---|---|
months | Number (Integer) | Number of months, such as 4 or 16. |
Type | Description |
---|---|
String | Date and time stamp of the month, the specified number of months ago, in local time. Format: UTC yyyy-mm-dd hh:mm:ss |
Example
The following example displays the current date and time and the date and time two months ago at the end of the business month.
Output:
GlideSystem - monthsAgoStart(Number months)
Returns a date and time for the start of the month a certain number of months ago.
Name | Type | Description |
---|---|---|
months | Number | Integer number of months ago, such as 5 or 14. |
Type | Description |
---|---|
String | GMT start of the month the specified number of months ago. Format: yyyy-mm-dd hh:mm:ss |
Example
The following example displays the current date and time and the date and time three months ago in GMT.
Output
Scoped equivalent
To use the monthsAgoStart() method in a scoped application, use the corresponding scoped method: monthsAgoStart().
GlideSystem - nil(Object obj)
Queries an object and returns true if the object is null or contains an empty string.
Name | Type | Description |
---|---|---|
obj | Object | The object to be checked. |
Type | Description |
---|---|
Boolean | True if null or empty string; otherwise, false. |
Example
Scoped equivalent
To use the nil() method in a scoped application, use the corresponding scoped method: nil().
GlideSystem - now()
Returns the current date in UTC.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The current date in the user-defined format, in UTC. |
Example
GlideSystem - nowNoTZ()
Returns the current date and time in UTC format.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | The current UTC date time |
Example
GlideSystem - nowDateTime()
Returns the current date and time in the user-defined format.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Current date and time in the user-defined format. For more information on setting the system date and time format, see Date and Date/Time fields. |
Example
Example
When setting a variable in a workflow script to the current date and time, use the setDisplayValue() method. The following script sets the workflow variable end_date to the current date and time.
GlideSystem - nowGlideDateTime()
Gets a GlideDateTime object with the current date and time.
After you get a GlideDateTime object with the current date and time, you can use the GlideDateTime methods to perform date-time operations, such as performing date-time calculations, formatting a date-time, or converting between date-time formats.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
Object | GlideDateTime object with the current date and time in GMT format. |
Example
Sets the field u_target_date to the current date and time in GMT format.
GlideSystem - print(String message)
Writes a message to the system log.
This method does not write the message to the syslog table unless debug has been activated.
Name | Type | Description |
---|---|---|
message | String | The message to log |
Type | Description |
---|---|
void |
Example
GlideSystem - quartersAgo(Number quarters)
Returns a date and time for a certain number of quarters ago.
Name | Type | Description |
---|---|---|
quarters | Number | Integer number of the quarters ago. |
Type | Description |
---|---|
String | GMT of the quarter that was the specified number of quarters ago. Format: yyyy-mm-dd hh:mm:ss |
Example
The following example displays the current date and time and the date and time four quarters ago at the same time.
Output
GlideSystem - quartersAgoEnd(Number quarters)
Returns a date and time for the last day of the quarter, for a specified number of quarters ago.
Name | Type | Description |
---|---|---|
quarters | Number | An integer number of quarters |
Type | Description |
---|---|
String | GMT end of the quarter that was the specified number of quarters ago, in the format yyyy-mm-dd hh:mm:ss |
Scoped equivalent
To use the quartersAgoEnd() method in a scoped application, use the corresponding scoped method: quartersAgoEnd().
GlideSystem - quartersAgoStart(Number quarters)
Returns a date and time for the first day of the quarter, for a specified number of quarters ago.
Name | Type | Description |
---|---|---|
quarters | Number | An integer number of quarters |
Type | Description |
---|---|
String | GMT end of the month that was the specified number of quarters ago, in the format yyyy-mm-dd hh:mm:ss |
Scoped equivalent
To use the quartersAgoStart() method in a scoped application, use the corresponding scoped method: quartersAgoStart().
GlideSystem - setProperty(String key, String value, String description)
Sets the specified key to the specified value.
Name | Type | Description |
---|---|---|
key | String | The key for the property to be set. |
value | String | The value of the property to be set. |
description | String | A description of the property. |
Type | Description |
---|---|
void |
Example
Output: bar
Scoped equivalent
To use the setProperty() method in a scoped application, use the corresponding scoped method: setProperty().
GlideSystem - setRedirect(Object URI)
Sets the redirect URI for this transaction, which then determines the next page the user will see.
Name | Type | Description |
---|---|---|
URI | Object | URI to set as the redirect |
Type | Description |
---|---|
void |
Example
This example redirects the user to a particular catalog item, and passes along the current email as a parameter.
Scoped equivalent
To use the setRedirect() method in a scoped application, use the corresponding scoped method: setRedirect().
GlideSystem - setReturn(Object URI)
Sets the return URI for this transaction. This determines what page the user will be directed to when they return from the next form.
Name | Type | Description |
---|---|---|
URI | Object | URI to set as the return location. |
Type | Description |
---|---|
void |
Example
This example ensures that the user will be returned to the current page when they are done with the next one.
GlideSystem - tableExists(String tableName)
Determines if a database table exists in the ServiceNow instance.
Name | Type | Description |
---|---|---|
tableName | String | Name of the table to check. |
Type | Description |
---|---|
Boolean | Flag that indicates whether the specified table exists in the ServiceNow instance. Possible values:
|
Example
This example shows checking whether the incident and foo tables exist in the ServiceNow instance.
Output
Scoped equivalent
To use the tableExists() method in a scoped application, use the corresponding scoped method: tableExists().
GlideSystem - userID()
Returns the sys_id of the user associated with this session. Use getUserID() instead.
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | Sys_id of the current user. |
Example
The following example shows how to unassign all active Incident records assigned to the current user.
Output:
GlideSystem - workflowFlush(Object glideRecord)
Deletes any open scheduled job records in the Schedule (sys_trigger) table for the specified GlideRecord.
Name | Type | Description |
---|---|---|
glideRecord | Object | The GlideRecord |
Type | Description |
---|---|
void |
GlideSystem - yearsAgo(Number years)
Gets a date and time for a certain number of years ago.
Name | Type | Description |
---|---|---|
years | Number | An integer number of years |
Type | Description |
---|---|
String | GMT beginning of the year that is the specified number of years ago, in the format yyyy-mm-dd hh:mm:ss. |
Scoped equivalent
To use the yearsAgo(Number years) method in a scoped application, use the corresponding scoped method: yearsAgo(Number years).
GlideSystem - yesterday()
Returns yesterday's time (24 hours ago).
Name | Type | Description |
---|---|---|
None |
Type | Description |
---|---|
String | GMT for 24 hours ago, in the format yyyy-mm-dd hh:mm:ss |
Scoped equivalent
To use the yesterday() method in a scoped application, use the corresponding scoped method: yesterday().
On this page
- GlideSystem - addErrorMessage(Object message)
- GlideSystem - addInfoMessage(Object message)
- GlideSystem - addMessage(String type, Object message)
- GlideSystem - beginningOfLastMonth()
- GlideSystem - beginningOfLastWeek()
- GlideSystem - beginningOfNextWeek()
- GlideSystem - beginningOfNextMonth()
- GlideSystem - beginningOfNextYear()
- GlideSystem - beginningOfThisMonth()
- GlideSystem - beginningOfThisQuarter()
- GlideSystem - beginningOfThisWeek()
- GlideSystem - beginningOfThisYear()
- GlideSystem - beginningOfToday()
- GlideSystem - beginningOfTomorrow()
- GlideSystem - beginningOfYesterday()
- GlideSystem - calDateDiff(String startDate, String endDate, Boolean numericValue)
- GlideSystem - dateDiff(String startDate, String endDate, Boolean numericValue)
- GlideSystem - dateGenerate(String date, String range)
- GlideSystem - daysAgo(Number days)
- GlideSystem - daysAgoEnd(Number days)
- GlideSystem - daysAgoLocal(Number days)
- GlideSystem - daysAgoStart(Number days)
- GlideSystem - endOfLastMonth()
- GlideSystem - endOfLastWeek()
- GlideSystem - endOfLastYear()
- GlideSystem - endOfNextMonth()
- GlideSystem - endOfNextWeek()
- GlideSystem - endOfNextYear()
- GlideSystem - endOfThisMonth()
- GlideSystem - endOfThisQuarter()
- GlideSystem - endOfThisWeek()
- GlideSystem - endOfThisYear()
- GlideSystem - endOfToday()
- GlideSystem - endOfTomorrow()
- GlideSystem - endOfYesterday()
- GlideSystem - eventQueue(String name, Object glideRecord, String parm1, String parm2, String queue)
- GlideSystem - eventQueueScheduled(String name, Object glideRecord, String parm1, String parm2, Object expiration)
- GlideSystem - flushMessages()
- GlideSystem - getAvatar()
- GlideSystem - getCurrentScopeName()
- GlideSystem - getDateFormat()
- GlideSystem - getDateTimeFormat()
- GlideSystem - getDisplayColumn(String tableName)
- GlideSystem - getDisplayValueFor(String tableName, String recordID, String
fieldName)
- GlideSystem - getErrorMessages()
- GlideSystem - getEscapedProperty(String key, Object substituteObject)
- GlideSystem - getImpersonatingUserDisplayName()
- GlideSystem - getImpersonatingUserName()
- GlideSystem - getInfoMessages()
- GlideSystem - getInitials()
- GlideSystem - getMessage(String messageID, Object args)
- GlideSystem - getMessageS(String messageID, Object args)
- GlideSystem - getMessageLang(String message, String language, Array args)
- GlideSystem - getNodeName(Object obj, Number index)
- GlideSystem - getNodeValue(Object obj, Number index)
- GlideSystem - getPreference(String key, Object default)
- GlideSystem - getProperty(String key, Object alt)
- GlideSystem - getScriptError(String script)
- GlideSystem - getSession()
- GlideSystem - getSessionID()
- GlideSystem - getStyle(String tableName, String fieldName, String fieldValue)
- GlideSystem - getTimeFormat()
- GlideSystem - getUser()
- GlideSystem - getUserDisplayName()
- GlideSystem - getUserID()
- GlideSystem - getUserName()
- GlideSystem - getUserNameByUserID(String user_id)
- GlideSystem - getXMLNodeList(String xml)
- GlideSystem - getXMLText(String xml, String xpathQuery)
- GlideSystem - hasRole(String roleName)
- GlideSystem - hasRoleInGroup(Object roleName, Object group)
- GlideSystem - hoursAgo(Number hours)
- GlideSystem - hoursAgoEnd(Number hours)
- GlideSystem - hoursAgoStart(Number hours)
- GlideSystem - isFirstDayOfMonth(Object date)
- GlideSystem - isFirstDayOfWeek(Object date)
- GlideSystem - isFirstDayOfYear(Object date)
- GlideSystem - isInteractive()
- GlideSystem - isLastDayofMonth(Object date)
- GlideSystem - isLastDayOfWeek(Object date)
- GlideSystem - isLastDayOfYear(Object date)
- GlideSystem - isLoggedIn()
- GlideSystem - isMobile()
- GlideSystem - lastWeek()
- GlideSystem - log(String message, String source)
- GlideSystem - logError(String message, String source)
- GlideSystem - logWarning(String message, String source)
- GlideSystem - minutesAgo(Number minutes)
- GlideSystem - minutesAgoEnd(Number minutes)
- GlideSystem - minutesAgoStart(Number minutes)
- GlideSystem - monthsAgo(Number months)
- GlideSystem - monthsAgoEnd(Number months)
- GlideSystem - monthsAgoStart(Number months)
- GlideSystem - nil(Object obj)
- GlideSystem - now()
- GlideSystem - nowNoTZ()
- GlideSystem - nowDateTime()
- GlideSystem - nowGlideDateTime()
- GlideSystem - print(String message)
- GlideSystem - quartersAgo(Number quarters)
- GlideSystem - quartersAgoEnd(Number quarters)
- GlideSystem - quartersAgoStart(Number quarters)
- GlideSystem - setProperty(String key, String value, String description)
- GlideSystem - setRedirect(Object URI)
- GlideSystem - setReturn(Object URI)
- GlideSystem - tableExists(String tableName)
- GlideSystem - userID()
- GlideSystem - workflowFlush(Object glideRecord)
- GlideSystem - yearsAgo(Number years)
- GlideSystem - yesterday()