Library

All Articles

149 tutorials across every ServiceNow topic

Platform ManagementintermediateApr 8, 2026

ServiceNow SQL API: Query Your Instance Directly with ODBC and JDBC

Australia Patch 1 introduced the SQL API — a read-only SQL interface to ServiceNow data via standard ODBC and JDBC drivers. No ETL pipelines, no data replication, no exports. Here's the full architecture and how to connect.

Read article →
ScriptingDec 16, 2023

The Role of isInteractive() in GlideSession Handling

Leveraging isInteractive() in ServiceNow for Enhanced Session Management As a ServiceNow developer, differentiating between interactive and non-interactive sessions has been a key aspect of my projects, ensuring tailored experiences for various user interactions. isInteractive() is

Read article →
ScriptingDec 16, 2023

How To Add A Message With addMessage(), Info or Error

The Significance of addMessage() in ServiceNow Development In my journey as a ServiceNow developer, one of the most impactful ways I’ve found to enhance user experience is through effective communication within the application. This is

Read article →
ScriptingDec 16, 2023

How To Use setLimit() To Return A Set Number Of Rows In A GlideRecordQuery()

The Strategic Application of setLimit() in Data Queries In my experience as a ServiceNow developer, managing data retrieval efficiently is key to maintaining system performance and user satisfaction. This is where setLimit() in GlideRecord queries

Read article →
ScriptingDec 16, 2023

How To Use setForceUpdate() To Force An Update With GlideRecord In ServiceNow

Effectively Utilizing setForceUpdate() in ServiceNow GlideRecord Queries In my journey as a ServiceNow developer, I’ve often encountered situations where I needed to ensure that a record was updated regardless of whether any fields had changed.

Read article →
ScriptingDec 16, 2023

How To Use setDisplayValue() To Set A Display Value

As a ServiceNow developer, one of the most intriguing tasks I’ve encountered was ensuring data accuracy and relevance, especially when dealing with reference and date/time fields. This is where setDisplayValue() comes into play in GlideRecord

Read article →
ScriptingDec 15, 2023

How To Properly Use orderBy() In A GlideRecord Query In ServiceNow

The Importance of orderBy() in Structuring Data As a ServiceNow developer, I’ve often faced the challenge of fetching and presenting data in a specific order. This is where orderBy() in GlideRecord queries becomes a game-changer.

Read article →
ScriptingDec 15, 2023

How To Get The Current CRUD Operation Name In A Script, with current.operation()

In my experience as a ServiceNow developer, understanding the context of data manipulation is crucial, particularly when working with business rules. This is where the operation() method in GlideRecord queries becomes invaluable. It allows you

Read article →
ScriptingDec 15, 2023

How To Get A Table Name with getTableName()

As a ServiceNow developer, one of the most fundamental yet crucial tasks is to understand and interact with various data tables. Here, getTableName() in GlideRecord queries plays an essential role. This method fetches the name

Read article →
ScriptingDec 15, 2023

How To Properly Use getEncodedQuery() In A GlideRecord Query

As a seasoned ServiceNow developer, I’ve come to appreciate the power of getEncodedQuery() in GlideRecord queries. This method retrieves the current query conditions as an encoded query string, which is a compact representation of the

Read article →
ScriptingDec 15, 2023

How To Delete Multiple Records With deleteMultiple()

NOTE: Be careful with deleteMultiple() – You are deleting data. Use with caution. The Strategic Use of deleteMultiple() As a ServiceNow Developer/Consultant, I’ve often encountered situations where bulk deletion of records is necessary. This is

Read article →
ScriptingDec 15, 2023

How To Use addInactiveQuery() In A GlideRecordQuery

Understanding the Need for addInactiveQuery() In the nuanced world of ServiceNow development, there are scenarios where accessing inactive records is just as crucial as fetching active ones. This is where addInactiveQuery() becomes an invaluable tool

Read article →
ScriptingDec 15, 2023

How To Use addActiveQuery() In A GlideRecord Query

Enhancing Query Efficiency with addActiveQuery() I alway smile when I see someone using addActiveQuery(), over gr.addQuery(“active”, true);. The addActiveQuery() function plays a crucial role in this process. This method is a streamlined approach to filter

Read article →
ScriptingDec 15, 2023

How To Get The Display Value Of A Reference Field Via A Client Script – g_form.getDisplayBox()

Unlocking the Potential of g_form.getDisplayBox() In the world of ServiceNow development, accessing display values of reference fields is a common requirement. This is where g_form.getDisplayBox() comes into play. It’s an effective method for retrieving the

Read article →
ScriptingDec 15, 2023

How To Use g_form.getReference() In A Client Script

Understanding the Role of g_form.getReference() When developing in ServiceNow, understanding the utility of g_form.getReference() is crucial. This function is a key tool for retrieving GlideRecord objects for specific fields in client scripts. What sets it

Read article →
Best PracticesSep 18, 2023

Understanding Parent / Child Relationships In ServiceNow Tables

Decoding Parent-Child Relationships in ServiceNow Tables: A Deep Dive ServiceNow, the versatile platform it is, encompasses an ocean of tables interacting, linking, and building upon one another. At the heart of this network lies the

Read article →
Career AdvancementSep 18, 2023

How To Study For The ServiceNow Certified System Administrator Exam

Conquering the ServiceNow Certified System Administrator (CSA) Exam: A Real-World Study Blueprint Ah, the coveted ServiceNow CSA certification! It’s more than just a shiny badge on your profile; it’s a testament to your grasp on

Read article →
Best PracticesSep 18, 2023

How To Use A For Loop In ServiceNow

How To Write A For Loop In ServiceNow ServiceNow, with its comprehensive platform for digital workflows, is not just about ITSM; it’s about robust development capabilities that allow for intricate business solutions. One of the

Read article →
ServiceNow AdminSep 18, 2023

How To Get The Current URL From A Client Side Script

How To Get The Current URL From The Client in ServiceNow In the vast landscape of ServiceNow development, client-side scripting holds a significant place. Among the myriad tasks a developer may want to perform, capturing

Read article →
ServiceNow AdminSep 18, 2023

How To Get The Current URL From A Server Side Script

How To Get The Current URL From The Server in ServiceNow Getting the current URL from the server side in ServiceNow can be extremely useful in a variety of contexts, such as when you’re designing

Read article →
Best PracticesSep 14, 2023

What Are Catalog Variables And How Are They Used In Formulating Requests?

Demystifying Catalog Variables in ServiceNow: Crafting Perfect Requests ServiceNow, renowned for transforming enterprise service management, offers robust functionality through its Service Catalog. Central to the Service Catalog’s power is the humble yet mighty ‘Catalog Variable’.

Read article →
Best PracticesSep 14, 2023

How Are Incidents, Problems, and Changes Different in ITSM?

Decoding ITIL in ServiceNow: A Deep Dive into Incidents, Problems, and Changes ServiceNow, revered for its unmatched IT Service Management (ITSM) capabilities, anchors its prowess in the principles of ITIL (Information Technology Infrastructure Library). But

Read article →
Platform ManagementSep 14, 2023

What Is The ServiceNow Studio?

ServiceNow Studio: Unveiling the Powerhouse of Custom Application Development The Dawn of Tailored Solutions in ServiceNow In the expansive realm of ServiceNow, customization reigns supreme. Enter the ServiceNow Studio – the integrated development environment (IDE)

Read article →
ServiceNow AdminSep 14, 2023

How Do I Add Or Modify Fields Within A Table In ServiceNow?

Manipulating Fields in ServiceNow Tables: A Comprehensive Guide for Admins ServiceNow, as an enterprise cloud platform, is renowned for its adaptability. Central to this flexibility is the ability to modify and introduce new fields within

Read article →
Best PracticesSep 14, 2023

How Do I Create, Modify, Or Delete A User In ServiceNow?

ServiceNow User Management: Creating, Modifying, and Deleting Users In the world of digital platforms, managing users is key. For ServiceNow, a top enterprise cloud solution, this is especially true. It’s crucial for ServiceNow admins to

Read article →
ServiceNow AdminSep 14, 2023

What Are Modules, Applications, and Instances in ServiceNow?

Building Blocks of ServiceNow Within the expansive digital ecosystem of ServiceNow, understanding its foundational elements is paramount. Enter: Modules, Applications, and Instances. These elements not only structure the platform but also underpin the way users

Read article →
Platform ManagementSep 14, 2023

How To Create A Related List In ServiceNow With Relationships

Introduction: The Power of the Related List Related lists in ServiceNow are not just list fields—they are windows into the intricacies of data relationships, revealing patterns and connections across different records. In the platform’s ecosystem,

Read article →
Best PracticesAug 9, 2023

How To Use While Loops In A GlideRecord Query

Properly Using While Loops In A GlideRecord Query ServiceNow’s GlideRecord is a powerful tool that every developer and admin should have in their toolkit. With it, querying and manipulating data within ServiceNow becomes a breeze.

Read article →
Best PracticesAug 9, 2023

Improve Your Alerts Using swal() In A Client Script – Use SweetAlert

NOTE: You need to import/commit this update set to your ServiceNow instance, before using the Sweet Alert Library. You can download it in the ServiceNow store, here. Also, props to the creator, Limon Monte (whom

Read article →
ScriptingAug 9, 2023

How To Add A Worknote To A Task, When It’s Approved

ServiceNow Approvals – Adding A Worknote To The Task, When Approved ServiceNow, as one of the most comprehensive and scalable IT Service Management platforms, offers numerous features designed to streamline the flow of business processes.

Read article →
ScriptingJul 16, 2023

Understanding Key Value Pairs In A JSON Object In ServiceNow

What Are Key Value Pairs In JSON? In the realm of ServiceNow scripting, understanding how to navigate key-value pairs in an object is fundamental. Why? Because they form the bedrock of data organization in objects,

Read article →
ScriptingJul 16, 2023

Using nil() To Check For null Values With GlideRecords

What Is nil()? Scripting in ServiceNow serves as a powerful tool for developers and administrators to manipulate and manage data. A key part of this toolbox is the nil() method. Simply put, nil() is a

Read article →
ScriptingJul 16, 2023

Creating Records With GlideRecord initialize() and insert()

What Are initialize() and insert()? In ServiceNow scripting, a common requirement is to create new records in a table. While this can be done manually through the UI, using scripts with initialize() and insert() methods

Read article →
REST APIJul 16, 2023

How To Send A JSON Object Body With The RESTMessageV2 API – Use setRequestBody()

How To Send Data Using RESTMessageV2 When crafting integrations with external systems in ServiceNow, sending JSON data in the request body using RESTMessageV2 often becomes a necessity. But why is this a significant practice in

Read article →
REST APIJul 16, 2023

How To Set An API Header RESTMessageV2 In ServiceNow

Mastering Headers in ServiceNow RESTMessageV2 In the realm of ServiceNow scripting, a vital aspect of working with APIs is correctly managing headers. As an administrator or developer, setting headers while scripting with RESTMessageV2 can significantly

Read article →
REST APIJul 15, 2023

How To Set An Endpoint Using RESTMessageV2

Mastering RESTMessageV2 in ServiceNow: Setting an Endpoint and Why It Matters In the evolving landscape of IT service management, integration with external systems has become an imperative need. ServiceNow, as a platform, excels in this

Read article →
ServiceNow AdminMar 9, 2023

How To Create A Record With An Inbound Email Action In ServiceNow

What Is An Inbound Email Action? An email is a form of an integration. You can use this email integration to do things like create and update any type of record in ServiceNow. You can

Read article →
Career AdvancementMar 9, 2023

How To Pass The ServiceNow CSA Exam, The First Time

What Is The ServiceNow CSA Exam? The ServiceNow Certified System Administrator (CSA) exam is a certification exam offered by ServiceNow, a cloud-based platform that provides digital workflows for enterprises. The exam is designed to test

Read article →
Best PracticesMar 9, 2023

Why DOM Manipulation Is Bad In ServiceNow

What Is DOM Manipulation? Maybe you’ve heard of it, but maybe you haven’t. DOM manipulation is something that you should stay away from in ServiceNow, and we’ll explain why. DOM manipulation is essentially a curse

Read article →
Best PracticesFeb 20, 2023

What Is The NextGen Program For ServiceNow?

What Is The NextGen Program? NextGen is a ServiceNow sponsored program that helps people, who have historically not been in IT, get a ServiceNow related job. Per ServiceNow’s website, the program has landed over 6,300

Read article →
Career AdvancementFeb 20, 2023

How To Become A ServiceNow Developer

What Really Is A ServiceNow Developer? Are you looking for a job working with ServiceNow? A ServiceNow Developer is a software developer who specializes in designing, developing, and implementing applications and solutions on the ServiceNow

Read article →
ServiceNow AdminFeb 20, 2023

How To Create A Form Template In ServiceNow

What Is A Form Template? Navigating around ServiceNow is all about trying to save time and minimize clicks. Do you repeatedly ever fill out the same data on a form, that you wish you could

Read article →
Best PracticesFeb 2, 2023

How To Create An Application Module For A Table

Did you recently create a table in ServiceNow, but you can’t seem to find it in your application navigator? Just by default, when you create a new table, it doesn’t automatically create a module for

Read article →
Best PracticesFeb 2, 2023

What Are Approvals In ServiceNow?

What Is An Approval? Approvals are a phenomenal way to safeguard process amongst your IT organization. There needs to be proper checks and balances before certain automation actions can run. Should we approve this change

Read article →
Best PracticesFeb 2, 2023

How To Schedule An Upgrade Of A ServiceNow Instance

What Is A Software Upgrade? ServiceNow software upgrades can actually be a lot of fun, if done properly. If you have a healthy instance, you look forward to upgrades so you can get new software

Read article →
Career AdvancementJan 30, 2023

When Is The ServiceNow Knowledge Conference in 2023?

What Is The Knowledge Conference? If you have the option to go to Knowledge, say ‘yes’! This is the single best event to attend annually, for everything ServiceNow. Local User Groups are great, but nothing

Read article →
Best PracticesJan 30, 2023

What Is The Configuration Management Database (CMDB) In ServiceNow?

What Is The CMDB In ServiceNow? The CMDB is a hot topic and a lot of customers surprisingly don’t implement it correctly on their first go. The CMDB is a bit of a rabbit hole

Read article →
Best PracticesJan 26, 2023

How To Install Plugins In ServiceNow

What Is A ServiceNow Plugin? In ServiceNow, a plugin is a collection of code, scripts, and other resources that can be installed on the platform to add new functionality or extend existing functionality. Some plugins

Read article →
ServiceNow AdminJan 26, 2023

How To Turn Off The Next Experience / Polaris UI In ServiceNow

What Is The Next Experience? The Next Experience is the new UI that ServiceNow is The Next Experience is also sometimes called Polaris. As you’ll see in the system property below that we’ll configure to

Read article →
ScriptingJan 13, 2023

How To Use setValue() In A GlideRecord Query

What Is The setValue() Method? When you’re building out a GlideRecord query, you’ll frequently want to set a value, in your while loop. The setValue() method in a GlideRecord query is a method that allows

Read article →
ServiceNow AdminJan 13, 2023

What Is The Watch List?

What’s A Watch List? The “Watch List” field in ServiceNow is a field that allows users to add other users to a list of people who will receive notifications when comments are added to a

Read article →
Best PracticesJan 13, 2023

What Is A Dictionary Override In ServiceNow?

What Is A Dictionary Entry? Before diving into dictionary overrides, you first need to understand what a dictionary entry is. Every single field, is tied back to a dictionary entry. It’s really as simple as

Read article →
ScriptingJan 12, 2023

What Is The g_form() Object?

What Is g_form()? Fundamentally, g_form is a global JavaScript object that provides a number of methods for interacting with and manipulating forms in the ServiceNow platform. It essentially just allows ServiceNow developers to interact with

Read article →
ServiceNow AdminJan 10, 2023

What Are Global And Custom Scopes In ServiceNow?

What Is Global Scope? In ServiceNow, global scope is the “application scope” that is default and is the building template that ServiceNow admins/developers build applications in. This may sound confusing, but we will talk through

Read article →
Best PracticesJan 9, 2023

What Is The Incident Management Application In ServiceNow?

What Is Incident Management? ServiceNow is more than a ticketing system. It really should be seen as a Platform, or Platform As A Service (PaaS). Incident management in ServiceNow is the process of tracking and

Read article →
Best PracticesJan 9, 2023

What Is The Problem Management Application In ServiceNow?

What Is Problem Management? Are you looking to improve your IT Service Management processes? If so, you should highly consider implementing the Problem Management application. Most companies are tracking incidents well enough, but do they

Read article →
Best PracticesJan 9, 2023

What Is The Change Management Application In ServiceNow?

What Is Change Management? Change management in ServiceNow is something that a surprising number of even large organizations don’t get totally right. Keep in mind, the below is a template or framework to follow –

Read article →
Career AdvancementJan 5, 2023

ServiceNow vs Salesforce

A Battle Of The Platforms ServiceNow and Salesforce are both enterprise grade SaaS platforms that are used by organizations to manage customer interactions and data. While both platforms offer a wide range of features, they

Read article →
ServiceNow AdminJan 5, 2023

What Is A Record Producer

What Is A Record Producer? In ServiceNow, a record producer is a type of form that users can fill out to create a new record in a specific table. It is often used to streamline

Read article →
Best PracticesJan 5, 2023

Understanding GlideRecord Queries In ServiceNow

What Is A GlideRecord? The GlideRecord class is one of the most important concepts to grasp when learning ServiceNow administration and development. You will see GlideRecord queries everywhere in the system, and not properly understanding

Read article →
Best PracticesJan 5, 2023

How To Use addQuery() With A GlideRecord

What Is The addQuery() Method? Every ServiceNow admin should know how to use the addQuery() method. It’s likely the first thing that an admin learns, when they get into scripting. They know that they have

Read article →
Best PracticesJan 4, 2023

The Complete Guide To System Properties

What Are System Properties? Every ServiceNow instance is controlled, in a major way, by System Properties. This is a table that is behind the scenes, and when modified, can completely change the UI/UX or configuration

Read article →
Best PracticesJan 4, 2023

How To Create A REST Message With RESTMessageV2

How To Create A REST Message There is a time in every ServiceNow admins life when they want to start writing code and begin creating integrations with other systems. Maybe you need to integrate with

Read article →
Best PracticesJan 4, 2023

How To Use Update Sets

What Is An Update Set? Update Sets are really the building blocks of ServiceNow. It is how customizations are bundled up, and transferred across ServiceNow instances. In ServiceNow, an update set is just a collection

Read article →
Career AdvancementJan 4, 2023

What Is ServiceNow?

What Is ServiceNow? ServiceNow can be a little confusing to be explain, as it has so many different use cases. So let’s dive into what it is, what customers are using it for, and the

Read article →
ScriptingJan 4, 2023

How To Use orderBy() To Sort By A Field Value

Why Use The orderBy() Method? What is orderBy() and why would you ever use it? Great question, we’d love to address it below. There are a number of reasons why you might want to order

Read article →
Best PracticesJan 3, 2023

How To Delete A Record In ServiceNow

Deleting A Record This functionality is only available to ServiceNow admins, and when deleting records proceed with caution. If you delete records on tables that are not audited, you will never be able to retrieve

Read article →
ScriptingJan 3, 2023

Can I Use A GlideRecord Query In A Client Script? No, Don’t Do It.

GlideRecord On The Client vs Server If you ever see a GlideRecord query, anywhere on the client side, it’s a HUGE red flag. It indicates that whomever implemented the solution doesn’t have any respect for

Read article →
ServiceNow AdminDec 21, 2022

How Do I See A List Of Users And Their Roles In ServiceNow

This article is really geared towards ServiceNow admins that are just getting into the system and administration. If you’ve been in ServiceNow for a while, the content here should be pretty obvious – except for

Read article →
ScriptingDec 21, 2022

Get The Difference Between Two Dates With subtract()

Use subtract() To Get A Date Difference Here is a quick server side script where you can get the duration difference, between 2 GlideDateTime objects. Remember that this is only available to run on the

Read article →
ScriptingDec 21, 2022

How To Add Days To A Date With GlideDateTime() and addDays()

How To Add Days To A Date Scripting with time in ServiceNow can keep you up at night. It can be tricky, difficult to get things to work, and there doesn’t seem to be great

Read article →
ScriptingDec 20, 2022

Require Worknotes when Resolving an Incident with a Business Rule

Why Require Work Notes, When Resolving/Closing an Incident? This requirement should be default in all ServiceNow instances. Especially for P1/P2 incidents. You’ll see this request come in from IT managers, because it enriches a companies

Read article →
ServiceNow AdminDec 20, 2022

How Do I Setup A User As A Delegate In ServiceNow?

What Is A Delegate? Why Would I Set One Up? This sort of request happens all the time. Someone either goes on a long vacation, or someone is out on maternity leave. They’re gone for

Read article →
ServiceNow AdminDec 19, 2022

3 Ways To Make A Field Read Only In ServiceNow

There are multiple different ways to accomplish the same functionality in ServiceNow. So our jobs as admins in the platform is to figure out what way is best, given a certain requirement from the business.

Read article →
ScriptingDec 19, 2022

How To Save A Record Using g_form.save() On The Client

What Is g_form.save() There are so many use cases for this to be implemented. The scenario is that you’re working with a form, in some client scripting capacity – client script, UI Action, etc. You

Read article →
ServiceNow AdminDec 18, 2022

How To Add A Custom Field To An Application/Form

How To Add A New Field To A Form ServiceNow Admins get this request all the time. There are out of box fields, and then you can create custom fields. All fields in ServiceNow are

Read article →
ScriptingDec 18, 2022

Prevent Submission Of A Form With an onSubmit() Client Script

Why Would You Want To Prevent A Form From Being Submitted In ServiceNow? This is a fairly common request that comes in from our end users. Sometimes, we need to engage in some data validation,

Read article →
ServiceNow AdminDec 14, 2022

How To Migrate Data via XML Files, From One Environment To Another in ServiceNow

Understanding XML in ServiceNow XML is just a data structure. Your data in ServiceNow, can be easily moved around, using this data structure. If you want to move data, for example incidents, from one ServiceNow

Read article →
ScriptingDec 14, 2022

Require A Minimum Length For A Field

Why Create A Minimum Field Length Requirement Say your end users aren’t filling out certain forms, as well as you’d like them to. As admins in the platform, along with many other features, we have

Read article →
Best PracticesDec 13, 2022

Auto Close Incidents Last Updated More Than 5 Days Ago

How Long Should ServiceNow Incidents Be Open For? There is no “one-size-fits-all” answer here. It depends on a) the type of incident b) it’s impact to the business c) the context of the IT organization

Read article →
Best PracticesDec 12, 2022

How To Make An API Call To ServiceNow With Python

Using Python With ServiceNow You can use Python to integrate directly with ServiceNow. So you can do things like create incidents, delete change requests, get all your SLA’s, etc. It should be known that you

Read article →
Best PracticesDec 11, 2022

Understanding sys_id’s and Reference Fields

What is a sys_id? In ServiceNow, a sys_id is a unique identifier for a specific record within a table. It is automatically generated by the system and used to identify and reference the record within

Read article →
ServiceNow AdminDec 10, 2022

ServiceNow – Understanding the stats.do page

What Is The /stats.do Page? Every ServiceNow environment has one. It’s called /stats.do, and you just get there by going to this URL: https://Instance_Name.service-now.com/stats.do Go and check it out and see what’s going on, behind

Read article →
Best PracticesDec 10, 2022

How To Hide A Field In ServiceNow

This is one of the first things that most admins come across. It’s a simple enough request. An end user comes out and says they need a certain field hidden, under certain circumstances. What’s the

Read article →
Career AdvancementDec 9, 2022

How To Pass The ServiceNow Certification Exam

Why Pursue A ServiceNow Job? We’re a bit biased here, as we’ve specialized in the field of ServiceNow Development, but here are our thoughts on the current ServiceNow Job Market in 2022/2023. If this article

Read article →
Best PracticesDec 9, 2022

How To Use g_form.getReference() To Dot Walk In A Client Script

What is g_form.getReference(), Anyways? Need to get the value of a field on another table, but you’re in a client script? If you’ve got a reference field that points to that record where you need

Read article →
Best PracticesDec 9, 2022

How To Solve The ‘Unique Key violation detected by database’ Error

What Is A Unique Key Violation? If you’ve developed in ServiceNow, you’ve likely found this error when looking at your system logs. We’ll cover some common scenarios where developers will find this error, and how

Read article →
ScriptingDec 9, 2022

How To Use GlideAjax in ServiceNow – A Complete Guide

What Is GlideAjax? If you’re a ServiceNow Admin or Developer, then you know what it’s like to be working on a client side script, when you need to access server side data. We would heavily

Read article →
Best PracticesDec 9, 2022

How To Use GlideAggregate In ServiceNow – A Complete Guide

Many developers, even seasoned ones, don’t have a truly solid grasp on using GlideAggregate. Most developers will get something like gr.getRowCount(), to find a tables row count, which is usually fine to use, especially in

Read article →
ScriptingOct 4, 2022

What Does setWorkflow(false) Do – In A Background Script?

When you’re performing bulk operations via script, you want to make sure that you keep “data integrity” in mind, of the records and tables you’re updating. You want to make the data as real and

Read article →
ScriptingOct 3, 2022

How To Create A Recurring Task – Use Scheduled Jobs

What Is A Scheduled Job? A scheduled job in ServiceNow is an action (usually a script) that is executed, based on a schedule. Say for example, that you’d like to create an incident, a change

Read article →
Best PracticesAug 31, 2022

How To Convert An Object To A String In ServiceNow – .toString()

There are different data types in ServiceNow, when using JavaScript. JavaScript is a “weakly” typed scripting language. Which means that when you declare a variable, you don’t have to define the data type of the

Read article →
ScriptingAug 30, 2022

How To Force A Record To An Update Set – UI Action

If you’re a ServiceNow Admin, you first off understand what an update set is, and you understand what types of records are captured, and which are not. If you write a business rule in an

Read article →
REST APIAug 25, 2022

How To View Outbound REST API Calls In ServiceNow

Have you ever wanted to know where to see your ServiceNow API calls? You know that you’ve made an API call from ServiceNow, but you’re not seeing it in the system logs and you don’t

Read article →
Platform ManagementAug 24, 2022

How To Create A Favorites Filter in ServiceNow

When you use ServiceNow, you’re accessing data that lives in tables. When you have commonly used lists, you can create and then set them as favorites. This will save you a lot of time as

Read article →
ScriptingAug 24, 2022

How To Add A Worknote To An Incident With A Script

There are a couple of ways to add a worknote to an incident. Below, we’ll cover adding a work_note to an incident with a business rule, and then we’ll also cover how to add a

Read article →
ScriptingAug 23, 2022

How To Use gs.getUser().isMemberOf()

When scripting in ServiceNow, you’ll frequently have to create conditional statements around users and their group membership. Based upon what group a certain user is in, we want to either allow or even disallow certain

Read article →
ScriptingAug 23, 2022

Get All Of The Groups For A User

This script will print all of the groups a member is in, in ServiceNow. Below, we query the [sys_user_grmember] table and find all of the groups where the user field is the sys_id of a

Read article →
ScriptingAug 23, 2022

ServiceNow GlideDateTime() – Get The Current Date And Time

Scripting around dates and time in ServiceNow has caused every ServiceNow Engineer some pain at a certain point. Here’s how to get the current date and time in ServiceNow. This will be a super simple

Read article →
ScriptingAug 22, 2022

How To Use getDisplayValue() and GlideRecord

When you’re scripting with reference field’s and sys_id’s, understanding how to use getDisplayValue() is incredibly useful. Anytime you see a reference field on a form, you need to know that the true value of that

Read article →
Best PracticesAug 19, 2022

The Difference Between gs.log() and gs.print()

ServiceNow Admins and Developers use logging statements all the time. When you’re in the development environment, you’re constantly throwing logs, to see what value is shown, when a certain action is taken. But do you

Read article →
Best PracticesAug 18, 2022

How To Get a ServiceNow Personal Developer Instance (PDI)

The ability to create your own ServiceNow Personal Developer Instance (PDI), on any recent software family version, completely for free – is available to everyone. Even if you have access to your company or customer’s

Read article →
Best PracticesAug 15, 2022

How To Get The Number Of Records/Rows In A GlideRecord Query With getRowCount()

There are many times in a ServiceNow Developer’s life where they simply need to know how many records are being returned in a GlideRecord query. Are we about to execute code against a 100 incidents,

Read article →
ScriptingAug 10, 2022

How To Get The Username Of Current User – User Object gs.getUser()

When you are scripting around the current user, you’ll find that the user object comes in handy. There are often times you’ll need to perform some certain behavior around the current user who’s logged in.

Read article →
REST APIJul 12, 2022

ServiceNow Table API – Integrate using cURL, Python, Ruby, JavaScript, Perl or Powershell

Below, I’ll show you how you can use 7 different scripting languages to authenticate to ServiceNow and retrieve/consume data. You can integrate with ServiceNow with the following scripting languages (not limited to): ServiceNow Scripting, JavaScript,

Read article →
Platform ManagementJul 11, 2022

JavaScript & Glide API in ServiceNow

Many people who work with ServiceNow don’t full understand how the platform is modified and managed by admins and developers. Many recruiters, managers and people that rely on ServiceNow – don’t understand how it is

Read article →
Best PracticesJul 8, 2022

How To Clear The Cache in ServiceNow

Clearing the instance cache is a crucial component of being a ServiceNow Admin/Developer. If you don’t understand how and when to clear the cache, you might be wasting a lot of time chasing a customization

Read article →
Best PracticesJun 27, 2022

ServiceNow – The List of All Tables (sys_db_object)

I have attempted to post all 3,954 tables that are out of box in every ServiceNow environment in this post, but it significantly decreases this webpages load time, to do so. So instead, you can

Read article →
Best PracticesJun 23, 2022

How To Create A Table In ServiceNow

In ServiceNow, tables are the cornerstone of every application. At the end of the day, everything is a record in a table. All business rules, incidents, assets, scripts, widgets, etc – are all records in

Read article →
Best PracticesJun 17, 2022

How Do Requests, Request Items and Catalog Tasks work?

The request engine in ServiceNow is often misunderstood. What is a request? What is a requested item? How are they different from incidents? These common questions are often never addressed and people are too afraid

Read article →
Best PracticesJun 17, 2022

What Does HI Stand For in ServiceNow?

What is HI in ServiceNow? HI stands for Hosted ITIL. Many people have highly contested this question, with a lot of people supporting the idea that it stands for Hosted Instance. Having worked at ServiceNow,

Read article →
Best PracticesJun 16, 2022

How To Clone A ServiceNow Instance

This is something that not enough ServiceNow Developers do, or do often enough. Cloning a ServiceNow instance essentially means that you’re copying one environment over another. You take one environment (Source) and you copy it

Read article →
Best PracticesMay 13, 2022

Logging In Custom Apps – Don’t Use gs.log()

If you’re a ServiceNow Admin, you’re very familiar with the idea of using gs.log(). It’s an extremely common scripting practice to see what the output of a value is. We use this every day in

Read article →
Career AdvancementJan 20, 2022

The Top ServiceNow Influencers To Follow (Twitter & YouTube)

Looking for some opinions from ServiceNow rockstars? It’s tough to be in the limelight of social media and publish your opinions on ServiceNow. You’re likely going to have a few people disagree with you. Also,

Read article →
ServiceNow AdminSep 2, 2021

How To Turn Email Sending And Receiving On And Off

Email Properties in ServiceNow As a ServiceNow Admin, it’s crucial to properly understand how the system can handle inbound and outbound email. If an emergency comes up around email, you’re going to need to be

Read article →
ServiceNow AdminSep 2, 2021

How Do I Change The Top Banner Color In ServiceNow?

As a ServiceNow Admin, you need to take the out of box configuration, and change it to have it work for your company. One of the first things that needs to happen when you are

Read article →
Career AdvancementAug 30, 2021

How To Get A ServiceNow Job

Want A ServiceNow Job? ServiceNow has exploded in popularity in recent years. What was once a not so well known IT Service Management platform has established quite the name for itself in Enterprise Software industry.

Read article →
Best PracticesAug 25, 2021

How To Export To Excel, XML, CSV, JSON or PDF In ServiceNow

Exporting Data in ServiceNow As a ServiceNow Admin, I use this functionality daily. In ServiceNow, you can very easily export data from a form or list view, into multiple file formats including: CSV, XML, JSON,

Read article →
Career AdvancementAug 23, 2021

Add The Email Client To Any Application in ServiceNow

The ServiceNow Email Client The ServiceNow email client contains functionality that I see a lot of companies miss out on. Many end users spend their entire working day in ServiceNow, and still resort to using

Read article →
ScriptingAug 23, 2021

Don’t Update System Fields With autoSysFields(false)

When To Use autoSysFields(false) As a ServiceNow Admin, you’ve most likely experienced this scenario before. You need to bulk update a few hundred records, by adding a worknote for example, but that’s all you want

Read article →
ScriptingAug 23, 2021

How To Write An Async Business Rule in ServiceNow

Understanding Async Business Rules All ServiceNow Admins need to understand when to use an async business rule, and when not to. An async business rule is similar to an after business rule, in that it

Read article →
ServiceNow AdminAug 20, 2021

How To Resend Emails in ServiceNow

How To Resend An Email in ServiceNow There comes a time in every ServiceNow Admin’s life when they need to dive into email related issues. The most common offender is the end user that swears

Read article →
Best PracticesAug 18, 2021

The ServiceNow Priority Matrix – Impact and Urgency

What Controls The Priority Of An Incident? Most people don’t realize how important the Priority of an incident is, or what it truly means. The priority of an incident is controlled by it’s impact and

Read article →
Platform ManagementAug 18, 2021

How To Assign Roles To A User In ServiceNow

Users, Groups and Roles in ServiceNow All ServiceNow Admins need to have a solid understanding of how these 3 inter-related pieces of the platform work together. If you’re still a beginner, check out how to

Read article →
ServiceNow AdminAug 17, 2021

ServiceNow – Test Your Connection Speed To Environment

ServiceNow – Speed Connection Test Is your ServiceNow instance slow? Is it slow for you or just some users? Not many ServiceNow Admins are aware of this handy feature. But every ServiceNow instance has a

Read article →
Best PracticesAug 17, 2021

How To Create A User in ServiceNow

Create A New User Most organizations use Active Directory to perform user management. A proper Active Directory connection via LDAP allows for the source of truth for user data, to live outside of ServiceNow. If

Read article →
Best PracticesAug 11, 2021

Restricting Access – ACL vs. Before Query Business Rule

How To Prohibit Access When most ServiceNow Admins think about granting or restricting access, the first thing that comes to mind is ACL (Access Control Rule) configuration. And usually, they would be correct. ACL’s are

Read article →
Best PracticesAug 10, 2021

How To View Who Is Logged Into Your ServiceNow Environment

Who’s Logged Into Your Instance Based on the size of your company, you could have potentially thousands of end users in your ServiceNow environment at any given time. As a ServiceNow Admin, you can see

Read article →
Best PracticesAug 9, 2021

Organize System Logs By Using A Source with gs.log()

Add A Source To gs.log(value, source) ServiceNow environments can create millions of system logs on a daily basis. And no one has time to manually sort through them. So unless your exporting this data to

Read article →
ScriptingAug 9, 2021

How To Show An Info or Error Message On A Form

Informational and Error Messages with g_form() Sometimes, you want to show everyone visiting a certain form some information. Say you’re experiencing an outage, or there’s a message you want to broadcast to everyone using a

Read article →
Best PracticesJul 28, 2021

Use get() to get One or Many Records With GlideRecord

Use get() with ServiceNow

Read article →
Best PracticesJul 28, 2021

5 Filter Navigator Tricks To Quickly Access Lists And Forms

Quickly Access Tables, Application Files And Forms There’s a lot of shorthand in ServiceNow that will save you a little bit of time every single day. When you’re performing a certain action a couple dozen

Read article →
Best PracticesJul 28, 2021

How To Use addEncodedQuery() with GlideRecord in ServiceNow

What is addEncodedQuery() This is something that will end up saving you a lot of time and can make your GlideRecord queries a lot cleaner and shorter. Being a ServiceNow Admin is all about learning

Read article →
Best PracticesJul 28, 2021

How To Set A Default Field Value in ServiceNow?

The Dictionary Entry Records & Default Values In ServiceNow, you can default field values to improve automation efforts in your environment. Every field on every table, is a Dictionary Entry in ServiceNow. When you’re looking

Read article →
Best PracticesJul 20, 2021

How To Use addOrCondition() with GlideRecord

Want To Add An OR Condition To A GlideRecord Query? As an admin, you need to be comfortable with GlideRecord scripting on the server. The addOrCondition() is amazingly helpful and I use it on a

Read article →
Best PracticesJul 20, 2021

How To Check The Software Family Version Of Any ServiceNow Environment

Want To Know What Software Version You’re On? ServiceNow names their software versions alphebetically, after major global cities. They started with Aspen, Berling, Calgary, Dublin, Eureka, etc. Actually, there were software family versions before this

Read article →
Best PracticesJul 20, 2021

How To Impersonate A User in ServiceNow

Impersonating A User In ServiceNow ServiceNow Admins (and impersonators) can impersonate any end user in their environment, and it’s a really neat trick. There are countless reasons to impersonate an end user. Say an end user

Read article →
Best PracticesJul 17, 2021

How To Manage Session Timeout System Properties in ServiceNow

How To Manage User Sessions ServiceNow allows ServiceNow admins the ability to automatically control the maximum amount of time users can be logged in for. This is really helpful if you’d like to make users

Read article →
Best PracticesJul 17, 2021

ServiceNow – Understanding The Side Door with /side_door.do

ServiceNow’s Side Door This is a trick that all ServiceNow Admin’s should have an awareness of. If your company uses SSO or has plans to implement it in the future – you’ll need to understand

Read article →
Best PracticesJul 16, 2021

How To Add A Button To The Incident Form

Adding A UI Action (Button) To Any Form In ServiceNow, admins can configure all aspects of a form. This includes fields, relationships between these fields, the UI of the form, and also – UI Actions.

Read article →
Best PracticesJul 14, 2021

Don’t Create An Approval, If Task Is Assigned To Approver

Don’t Allow Approval To Be Created, If Task Is Assigned To That User How do we stop an approval from being created, if the associated task is assigned to that user? We don’t want people

Read article →
Best PracticesJul 12, 2021

How To Delete (And Restore) Records With A Background Script

Deleting Multiple Records In ServiceNow, a background script is an admins best friend. It allows you to run scripts to directly interact with your database. This can be incredibly helpful and save you a tremendous

Read article →
ScriptingJul 8, 2021

How To Randomly Auto Assign Tasks in ServiceNow

Auto Assign Capabilities – What is Out Of Box? By default, when any record is assigned to a group, there’s no automatic behavior to update the “Assigned to” user. There is no round robin or

Read article →
ScriptingJul 7, 2021

How To Call a Script Include from a Business Rule In ServiceNow

Overview Have you ever wanted to call a Script Include, directly from a Business Rule? This is a common method to keep your business rules clean. It’s especially useful if you plan on repeatedly calling

Read article →
Best PracticesJul 6, 2021

ServiceNow Admin vs. ServiceNow Developer – What are the Differences?

ServiceNow Admin vs. ServiceNow Developer There’s a lot of confusion in the world of ServiceNow between an Admin and Developer. I will try to clear that up in this post. As someone who started out

Read article →
Best PracticesJul 2, 2021

Only Send Approval Requests to Active Users

Creating An Approval This is something, that in my opinion, should be out of box functionality – but is not. But the benefit of a platform like ServiceNow is that it allows you to create

Read article →
Best PracticesJul 1, 2021

How To Understand, Create and Reference System Properties in ServiceNow

What are System Properties? System properties in ServiceNow control thousands of specific options regarding the behavior and configuration of the platform. This is incredibly far ranging, but it includes modifying the color scheme, how long

Read article →
Best PracticesJul 1, 2021

Prohibit An Insert or Update with setAbortAction(true)

When To Use setAbortAction() A common use case in ServiceNow for an Admin or Developer is to not allow a record to be inserted or updated, under certain conditions. This is where the method setAbortAction()

Read article →
ScriptingJun 30, 2021

Create An Incident via Background Script

A background script in ServiceNow can be used to create, update or delete many records on the server. We will create an incident record using GlideRecord here as an example. Make sure to try it out in a sub production instance first.

Read article →