Tutorials

Ben Sweetser

5 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction Fix Scripts, like any other script type on the Now Platform, have a purpose to serve. Fix scripts run server-side JavaScript to make changes required by an application that cannot be captured as an application file.

Ben Sweetser

6 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction Years ago, when I first started working with the ServiceNow platform, I learned about Scripts - Background. Scripts - Background was this magical place in the platform where you could run any server-side script.

Ben Sweetser

8 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction When I develop scripts to automate business logic, I try to automate how the logic triggers. If logic should run when a record is created or is set to a certain state, I use a Business Rule to automatically execute a script.

Simplify Queries with Encoded Queries

Tutorial on using encoded queries to simplify complex GlideRecord queries.

#GlideRecord , #GlideRecord Query , #Query , #Scripting , #Server Side Scripting , #Encoded Query

Ben Sweetser

6 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction With GlideRecord queries, you can find any set of records you need in ServiceNow. Not all queries are easy to write, though, especially if you need to work with date fields or OR operators.

Counting with GlideAggregate

Tutorial on using GlideAggregate to count.

#GlideAggregate , #Server Side Scripting , #Scripting , #Count

Ben Sweetser

10 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction As my youngest child was learning to count, he would always miss number 14. “…eleven, twelve, thirteen, fifteen, sixteen…” Now he is six years old and counts by ones like a pro.

Shortcut GlideRecord Queries with get

Tutorial on the GlideRecord get() method to return a single record

#GlideRecord , #GlideRecord get , #get , #Scripting , #Server Side Scripting

Ben Sweetser

9 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction Sometimes you know exactly what you want. You do not have the server at a restaurant bring you every chicken item on the menu and then decide which to eat.

Ben Sweetser

9 minute read

We are experimenting with new training content delivery methods. This tutorial blog post is one of those experiments. We are very interested in your feedback. Please let us know what you think about this format and the content in the comments below. Introduction Newer developers in the Developer Program have requested additional hands-on work with GlideRecord. While many of the training modules include examples with GlideRecord, this “bonus exercise” adds hands-on experience with GlideRecords in Business Rules.