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

Business rules


Let us create our first server-side script-a business rule. A business rule is a JavaScript code that is associated with a table, runs on the server, and is executed before, after, or asynchronously when a record is inserted, updated, deleted, or retrieved in the specified table.

The following business rule new record form has many fields and tabs available when the advanced checkbox is checked:

  • When to run
  • Actions
  • Advanced (this tab is available only when the Advanced checkbox is checked)
  • The business rule can execute based on the kind of database operations selected. One or more of the following different operations can be selected:
    • Insert
    • Update
    • Delete (Only available when the Advanced field is checked)
    • Query (Only available when the Advanced field is checked and cannot be aborted)
  • When: The When property is only available when the Advanced field is selected. When the Advanced field is unchecked, the When property defaults to Before. The When property of the business rule can be...