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
Credits
About the Author
About the Reviewer
www.PacktPub.com
Customer Feedback
Preface
Free Chapter
1
Introduction to ServiceNow

UI scripts


Let us now learn about another type of client-side script feature available in the ServiceNow platform, known as the UI script. The UI script is basically a bundle of JavaScript functions that may also include client-side Glide API calls.

The most important purpose of the UI script is to enable developers to create reusable code. The UI scripts are included and available in all the forms, list of record pages, and other modules. They can be referred to from any other client-side scripts, including the client script and UI policy. Because the UI script code is included in all the forms and page when marked Global, it is a recommended best practice to avoid creating a UI script unless it is really required.

As our intent is to create globally reusable client-side code, we will create the UI script in the Global application scope because only then will our UI script be accessible globally. The ServiceNow platform, starting with the Fuji release, doesn't support the creation of a global...