Book Image

ServiceNow Application Development

By : Sagar Gupta
Book Image

ServiceNow Application Development

By: Sagar Gupta

Overview of this book

ServiceNow provides service management for every department in the enterprise, including IT, Human Resources, Facilities, Field Service, and more. This book focuses on all the steps required to develop apps and workflows for any of your business requirements using ServiceNow. You will start with the first module, which covers the basics of ServiceNow and how applications are structured; how you can customize the dashboard as required; and also how to create users. After you get used to the dashboard, you will move on to the next module, Applications and Tables, where you will learn about working with different tables and how you can create a scope other than the global scope for your application. The next module is Scripting and APIs, where you will learn Scripting in ServiceNow and use powerful APIs to develop applications. The final module, Administration Essentials, covers debugging, advanced database features, and scheduled script creation. By the end of the book you will have mastered creating organized and customer-friendly applications
Table of Contents (21 chapters)
Title Page
About the Author
About the Reviewer
Customer Feedback
Free Chapter
Introduction to ServiceNow

Chapter 8. Server-Side Scripting

Now that we have learned about scripting and created some client-side scripts in the ServiceNow platform, let us start writing some server-side scripts to further enhance our application.

As discussed in the previous chapter, server-side scripts are JavaScript code that executes on the server and has access to a server-side glide API. We can employ a server-side API to enhance server-side data processing and integration with different systems. Server-side scripts can also be used to perform database operations and perform large scripted imports.

In this chapter, we will learn how to create server-side scripts, and when and where the server-side scripts come on the scene when working with ServiceNow applications. We will also learn how to make use of the server-side glide API and some of the most widely used functions available in it.

In this chapter, we will learn how to create the following server-side scripts:

  • Business rules
  • Script include
  • Data policy