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

Different script types

ServiceNow offers various scripting options to the developer. While all scripts in ServiceNow are written using JavaScript and invoke relevant API calls, each script type offers a different functionality. The following are the key script types available in the ServiceNow platform, which we are going to cover in this book:

  • Business rules: These are similar to database triggers and can be used to customize system behavior. They execute on the server side and run when a database action such as query, insert, update, or delete occurs. They can also be used to abort a database action. For example, business rules can be used as a server-side form validation wherein an insert or update database action can be aborted if the form validation fails.
  • Script actions: These are a set of scripts that are executed whenever an event occurs. They have a condition field which, when set, must be true for the script to run. They can also be invoked by firing events from a workflow. Like...