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

Table auditing


The audit property of the collection dictionary entry can be used to monitor and track all changes to a record. If auditing is enabled for a table, then the system tracks insertion, update, and deletion of all records in the table. Let's enable auditing in the Booking Request table.

To enable auditing for the Booking Request table, open the dictionary entry for the table (collection) as described previously in the chapter. Now, check the Audit checkbox, as shown in the following screenshot, and click on the Update button:

Once the auditing is enabled on a table, the platform tracks all changes to a record and stores all changes to the sys_audit table. The sys_id of the record that changed is tracked, along with the following other information:

  • Name of the table that contains the record that changed (table name)
  • Name of the field that changed (field name)
  • The new field value (new value)
  • The old field value (old value)
  • Number of times this record and field have been updated
  • The date...