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

Syntax editor


The syntax editor helps developers to write JavaScript code when working with scripts. It is enabled by default on all instances. The syntax editor is ubiquitous in the ServiceNow platform and is available on all forms where we have a field to write JavaScript code:

The syntax editor, as shown in the preceding screenshot, may look like a simple text editor with syntax highlighting and formatting support; however, the syntax editor in the ServiceNow platform has lots of features developers must be aware of. The following are the different action buttons available in the syntax editor:

All of these features are simple to follow and understand but keeping them in mind when writing code can be very useful. The following are some of the features available in the syntax editor.

Context-sensitive help

One of the most important features of the syntax editor is that it can help display context-sensitive API information when writing code, commonly known as autocomplete.

The context-sensitive...