Skip to content
The Snowball

The Snowball

A ServiceNow Blog & Newsletter

  • Books
  • Learn
    • Best Practices
    • ServiceNow Admin
    • Career Advancement
    • Scripting
    • Advanced
    • Platform Management
    • REST API
    • Service Portal
  • Contact
  • Checkout 🛒

Scripting

Elevate your ServiceNow development skills with our comprehensive resources on JavaScript and GlideRecord, the powerful tools to manipulate data and customize your ServiceNow platform.

Gain in-depth knowledge of server-side and client-side scripting techniques, enabling you to create dynamic applications, automate processes, and build seamless user experiences. Enhance your understanding of GlideRecord, ServiceNow’s proprietary data access layer, and discover how to efficiently query, create, update, and delete records within the platform.

Learn best practices for working with IT Service Management (ITSM), IT Operations Management (ITOM), IT Business Management (ITBM), and other key ServiceNow modules using JavaScript and GlideRecord.

Stay up-to-date with the latest trends, tips, and tricks to optimize your scripting skills, ensuring high-performing, secure, and scalable solutions for your organization’s digital transformation journey.

orderBy() in a background script

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: January 4, 2023

gliderecord query on the client - dont do it

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: January 3, 2023

date difference with subtract()

Scripting

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. … Read more

Photo of author

Written by: Team Snowball

Published on: December 21, 2022

use addDays() to add or remove days

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: December 21, 2022

before update business rule

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: December 20, 2022

g_form.save() client script or ui action

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: December 19, 2022

client script dont allow submit onSubmit

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: December 18, 2022

make a field a mandatory length

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: December 14, 2022

Using GlideAjax in ServiceNow, client side queries of table data

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: December 9, 2022

Scripting

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 … Read more

Photo of author

Written by: Team Snowball

Published on: October 4, 2022

Prev Next

About

The Snowball – An Independent ServiceNow Blog & Newsletter. We have no affiliation with ServiceNow.

Recent Posts

  • The Role of isInteractive() in GlideSession Handling
  • How To Add A Message With addMessage(), Info or Error
  • How To Use setLimit() To Return A Set Number Of Rows In A GlideRecordQuery()
  • How To Use setForceUpdate() To Force An Update With GlideRecord In ServiceNow
  • How To Use setDisplayValue() To Set A Display Value

Looking for something

The Snowball © - 2025 - An Independent ServiceNow Site
  • Books
  • Learn
    • Best Practices
    • ServiceNow Admin
    • Career Advancement
    • Scripting
    • Advanced
    • Platform Management
    • REST API
    • Service Portal
  • Contact
  • Checkout 🛒