API Reference

GlideRecord

Methods (40)

addActiveQuery()voidbeginner
addEncodedQuery(query)voidintermediate
addJoinQuery(joinTable, primaryField, joinTableField)GlideQueryConditionadvanced
addNotNullQuery(fieldName)GlideQueryConditionbeginner
addNullQuery(fieldName)GlideQueryConditionbeginner
addOrCondition(name, value)GlideQueryConditionintermediate
addQuery(name, value)GlideQueryConditionbeginner
addQuery(name, operator, value)GlideQueryConditionintermediate
autoSysFields(enable)voidadvanced
canRead()booleanintermediate
canWrite()booleanintermediate
chooseWindow(firstRow, lastRow)voidadvanced
deleteMultiple()voidadvanced
deleteRecord()booleanintermediate
get(sys_id)booleanbeginner
getDisplayValue(fieldName)stringbeginner
getEncodedQuery()stringintermediate
getRecordClassName()stringintermediate
gr.fieldName.getRefRecord()GlideRecordintermediate
getRowCount()numberintermediate
getTableName()stringbeginner
getUniqueValue()stringbeginner
getValue(fieldName)stringbeginner
hasNext()booleanintermediate
initialize()voidintermediate
insert()stringbeginner
isNewRecord()booleanbeginner
isValid()booleanbeginner
isValidField(fieldName)booleanintermediate
next()booleanbeginner
orderBy(fieldName)voidbeginner
orderByDesc(fieldName)voidbeginner
query()voidbeginner
setAbortAction(b)voidintermediate
setDisplayValue(fieldName, value)voidintermediate
setLimit(maxNumRecords)voidbeginner
setValue(fieldName, value)voidbeginner
setWorkflow(enable)voidintermediate
update(reason)stringbeginner
updateMultiple()voidadvanced
Sourdough
Chrome Extension

Sourdough: ServiceNow Monitoring and Analytics

A Chrome extension for ServiceNow Admins and Developers with essential tools, analytics, graphs and monitoring features.

Instance HealthGraphs & ChartsAPI HealthDeveloper ToolsQuick SearchInstance Switcher
Add to Chrome

Free to install. Pro $5/month after a 14-day no-card trial.
Pro requires the ServiceNow admin role. Upgrade inside the extension.

Overview
Tasks
CMDB
API
Metrics
Monitor
Internals
Instance:sourdoughdev·Version:Yokohama
Instance StateONLINE
System StatusFully Operational
Session Timeout90 minutes
Logged-In Sessions2 (20 active)
Build Nameyokohama-12-18-2024_p1
IP Address10.159.128.43
Instance HealthHealth Score: 90%
🔥 5dSourdough (Chrome Plugin)Dark Mode

Test Your Knowledge

Quick 3-question quiz — see how your ServiceNow skills stack up.

Question 1 of 3Performance

A list view on a table with millions of records is slow. Best fix?

Select an answer to continue