Chapter 1, Introduction to ServiceNow, will help the reader get started with ServiceNow and gain access to a free developer instance from ServiceNow Developer Portal. The chapter is focused on getting the reader used to the platform and the basics of ServiceNow, such as UI, Login process, and some out-of-the box applications and features. The chapter will also help the reader brush up their knowledge about how ServiceNow is used within organizations.
Chapter 2, User Administration, explains how to create new users and associate them to a group. You will also learn how to assign roles to groups and users. Further, you will learn how to impersonate a user to test if our newly created users have access to correct applications and modules.
Chapter 3, Data Management, explains that managing tables and columns is one of the most common job administrators and developers have to perform when working on the ServiceNow platform. ServiceNow platform features various modules that can be used to create and manage tables and columns. In this chapter, you will learn how to create a new table from scratch, extend existing table and add fields (or columns) to new or existing tables. You will also understand the structure of existing tables such as task and cmdb.
Chapter 4, Application Scopes, explains that, when developing applications on the ServiceNow platform, developers need to take special care about the application scope they are working on. Applications help administrators and developers to combine different modules and features to deliver a relevant set of functionality. ServiceNow allows developers and administrators simple means to create and manage applications. In this chapter, you will learn how to create new applications. You will learn about the relationship between applications and scopes. You will also learn how to use applications to associate relevant information and access data from other applications.
Chapter 5, Modules, Forms, and Views, explains that ServiceNow platform easy-to-use features that allow administrators to create modules, and customize form and views. In this chapter, you will learn how to create different type of modules, customize the form layout, and quickly add new form fields to the table. You will also learn about various form field element types available in the platform including the reference field, journal field, date field and choice list. Furthermore, you will learn how to use form views to present same record in different manner to end-users based on their role.
Chapter 6, Introduction to ServiceNow Scripting, ServiceNow platform offers various scripting options to developers. This chapter, you will learn about different type of scripting options available in ServiceNow platform. You will learn about difference between server-side and client-side scripts. Furthermore, you will also learn how scripting works in scoped applications and get introduced to client-side and server-sideGlide APIs.
Chapter 7, Client-Side Scripting, will help you to learn how to create client-side scripts and what are the different ways to execute the client-side code. The readers will learn how to make use of the client-side Glide API and some of the most widely used functions available. You will learn how to create client scripts, UI policy, and UI script.
Chapter 8, Server-side Scripting, explains that server-side scripts and APIs can be employed to enhance server-side data processing and integration with different systems. Server-side scripts can also be used to perform database operations and perform large scripted imports. This chapter will help you learn how to create server-side scripts, and when and where the server side scripts comes in the scene when working with ServiceNow applications. The chapter will help you understand how to make use of the server-side Glide API and server-side artifacts like Business Rules, script-include, and data policy.
Chapter 9, Jelly Scripting, explains that in ServiceNow platform, Apache’s Jelly syntax is used to render forms and UI pages. Jelly is Java and XML-based scripting and a transformation engine used to turn XML into executable code. The output is usually HTML and JavaScript code that is used by the browser to render elements on a page. This chapter will help you learn how to create UI pages, UI macros and formatters. You will learn how to make use of Jelly scripts to enhance our UIs and create custom controls and application property page.
Chapter 10, Events and Notifications, explains that in ServiceNow, Events are used to monitor changes or events by event handlers just like in any other programming language. Events in the queue are consumed by script actions or notifications, which in turn execute scripts or trigger notifications. Notification on the other hand, is an approach to send out e-mail to the end-users or external end-points. Any form or script sending out an email relies on the Notification feature of the platform. This chapter will help you learn how to trigger events when data changes and send out e-mail based on events.
Chapter 11, Workflow Development, explains that the ServiceNow offers a web based visual workflow designer known as Workflow Editor. A workflow is made up of activities and always consists of begin and end activities that marks the start and end of the workflow. This chapter will help you learn how to use many of the different available standard workflow activities including the REST activity and how to design, run and test your own workflow.
Chapter 12, Debugging in ServiceNow, explains that within ServiceNow you write both server-side and client-side code. The ways to troubleshoot them more or less remain same but the approach differs. This chapter will cover many different troubleshooting and debugging techniques available within the platform. The chapter will help you how to use many features to debug and troubleshoot scripts in ServiceNow platform and cover various topics such as Syntax editor, launching and using the Script debugger, JavaScript log and Field watcher.
Chapter 13, Advanced Database Features, ServiceNow platform offers many features to improve the performance and overall functionalities of ServiceNow applications. This chapter will cover features like relationships, indexing, full-text search, and overriding field properties. You will also learn features such as enabling auditing, restoring deleted records and Table rotation and data archiving.
Chapter 14, Job Scheduling and Data Export-Import, explains that as a developer you will always to be tasked to ensure data from various external systems can be brought into the platform with ease and this may require you to create scripted controls that can perform pre- and post-processing of the imported data. This chapter includes some of advanced development and administrative tasks that a developer must be aware of like scheduled script execution (SSE), and data export and import. More specifically, you will help how to schedule a script to run in the background, export data, import data using import sets, configure transform maps and use scripts to process imported data.