Book Image

Learning ServiceNow

By : Sylvain Hauser
Book Image

Learning ServiceNow

By: Sylvain Hauser

Overview of this book

This book shows you how to put important ServiceNow features to work in the real world. We will introduce key concepts and examples on managing and automating IT services, and help you build a solid foundation towards this new approach. We’ll demonstrate how to effectively implement various system configurations within ServiceNow. We’ll show you how to configure and administer your instance, and then move on to building strong user interfaces and creating powerful workflows. We also cover other key elements of ServiceNow, such as alerts and notifications, security, reporting, and custom development. You will learn how to improve your business’ workflow, processes, and operational efficiency. By the end of this book, you will be able to successfully configure and manage ServiceNow within your organization.
Table of Contents (21 chapters)
Learning ServiceNow
Credits
About the Author
About the Reviewer
www.packtpub.com
Customer Feedback
Preface

Preface

ServiceNow is a powerful and versatile cloud-based IT Service Management (ITSM) platform that supports Incident, Problem, Change, and Knowledge management, as well as a great many other IT processes. With Information Technology Infrastructure Library (ITIL) processes baked right in, powerful workflow-driven processes, and a robust scripting engine for both client-side and server-side customizations, ServiceNow can provide fairly comprehensive ITSM functionality right out of the box, or it can be extensively customized to suit the needs of any business.

If you're reading this, then there's a good chance you are, or aim to be, a ServiceNow administrator or developer. This means that it'll be your responsibility to extend and modify ServiceNow's existing functionality to meet the needs of your business' users. This book will help get you up to speed on how ServiceNow works, what its' capabilities are, and how to customize its functionality and appearance!

What this book covers

Chapter 1, The Interface, Learn about the different interfaces of ServiceNow (including UI15 and UI16), and pick up pro tips on how to fly around the interface like a seasoned pro.

Chapter 2, Lists and Forms, See the differences between the new and old style of lists (both of which are present in ServiceNow), and learn how to customize them as well as the form view and related lists.

Chapter 3, UI Customization, Customize your ServiceNow instance's user interface, using themes, System Properties, UI Properties, and custom CSS.

Chapter 4, Understanding Data and Relationships, Understand table inheritance, and the different types of relationships that go into the underlying ServiceNow relational database structure; including one-to-one, one-to-many, and many-to-many relationships.

Chapter 5, Tasks and Workflows, Expanding on the data relationship concepts we learned in the previous chapter, this chapter teaches specifically about Tasks in ServiceNow, and best practices surrounding their use. Herein, we also learn about workflows - closely tied with the Task table - and how to leverage them effectively.

Chapter 6, UI and Data Policies, Learn about UI Policies, Data Policies, and best practice guidelines surrounding them. Pick up "Pro Tips" from industry experts, and learn how to debug potential issues.

Chapter 7, User Administration and Security, ServiceNow's security and access rights are determined by Access Control Lists (ACLs) also known as Security Rules. Learn to utilize these rules to define permissions for your users in your instance.

Chapter 8, Introduction to Scripting, Scripting in ServiceNow has its' own quirks and best practices. In this chapter, learn how (and when) to use custom scripted functionality.

Chapter 9, The Server-side Glide API, Learn about the server-side ServiceNow API, also known as the Glide API, built on top of Mozilla Rhino: a Java-based implementation of JavaScript.

Chapter 10, The Client-side Glide API, See real-world examples while learning about the client-side Glide API, including how to avoid the major performance pitfalls using AJAX and asynchronous scripting.

Chapter 11, Server-side Scripting, Now that you understand the server-side Glide API, learn about scripting best practices, how and when to use server-side scripts, and what types of scripts are available.

Chapter 12, Client-side Scripting, Learn all about client-side script types and best practices, including how to access server-side data and functionality asynchronousy, while preserving client-side performance.

Chapter 13, Debugging, Now that you know enough to be dangerous, this chapter teaches you how to debug your scripts to make sure they'll run without error, and handle potential issues as, or even before, they arise.

Chapter 14, Pro Tips, Get tips and advice on how to avoid common pitfalls. Learn advanced tips, and what industry pros wish they'd known when they were first starting out as ServiceNow administrators and developers.

What you need for this book

There are a couple of things you'll need, before you set off on your journey toward becoming a ServiceNow developer:

Basic knowledge of JavaScript

JavaScript is the language that's used to interact with ServiceNow on both the client, and the server. While an administrator" can do a lot of customization within ServiceNow without any code at all, any scripting you do will be done in JavaScript.

Note

There's a common saying: "'Java' is to 'JavaScript', as 'Car' is to 'Carpet'". The two are effectively unrelated. The language you need to know for ServiceNow development, is JavaScript.

A free developer instance of ServiceNow

ServiceNow is kind enough to provide a free development instance to anyone who wants one.

To request an instance, simply register for an account on https://developer.servicenow.com, and then click the Request Instance link on your account page.

When requesting an instance, you may select which version of ServiceNow you'd like. You can change this at any time down the road, but it often takes a few hours to do so.

This book deals primarily with the Helsinki version of ServiceNow, though elements of Geneva and Istanbul are also discussed. If you're going to follow along in your own instance, we recommend doing so in either Helsinki,or Istanbul.

Who this book is for

While expert ServiceNow developers, administrators, and architects can expect to learn much from this book, it is geared toward people with less than 2 years of experience as ServiceNow developers/administrators.

Whether you're getting the hang of things, are just starting out, or even if you haven't yet begun your ServiceNow career, this book is for you.

Conventions

In this book, you will find a number of text styles that distinguish between different kinds of information. Here are some examples of these styles and an explanation of their meaning.

Code words in text, database table names, folder names, filenames, file extensions, path names, dummy URLs, user input, and Twitter handles are shown as follows: " user preferences can be found in the sys_user_preference table."

A block of code is set as follows:

   var newWarRoom = current.u_war_room.getRefRecord();
   var oldWarRoom = previous.u_war_room.getRefRecord();
   newWarRoom.setValue('u_major_incident', current.getValue('sys_id'));
   oldWarRoom.setValue('u_major_incident', '');
   newWarRoom.update();
   oldWarRoom.update();
   })(current, previous);
   [default] 
   exten => s,1,Dial(Zap/1|30) 
   exten => s,2,Voicemail(u100) 
   exten => s,102,Voicemail(b100) 
   exten => i,1,Voicemail(s0) 

New terms and important words are shown in bold. Words that you see on the screen, for example, in menus or dialog boxes, appear in the text like this: "Click on the blue New button at the top-left of the page to go to the new update set form."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book-what you liked or disliked. Reader feedback is important for us as it helps us develop titles that you will really get the most out of.

To send us general feedback, simply e-mail [email protected], and mention the book's title in the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide at www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the color images of this book

We also provide you with a PDF file that has color images of the screenshots/diagrams used in this book. The color images will help you better understand the changes in the output. You can download this file from http://www.packtpub.com/sites/default/files/downloads/LearningServiceNow_ColorImages.pdf.

Errata

Although we have taken great care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books-maybe a mistake in the text or the code-we would be grateful if you could report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/submit-errata, selecting your book, clicking on the Errata Submission Form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded to our website or added to any list of existing errata under the Errata section of that title.

To view the previously submitted errata, go to https://www.packtpub.com/books/content/support and enter the name of the book in the search field. The required information will appear under the Errata section.

Piracy

Piracy of copyrighted material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at [email protected] with a link to the suspected pirated material.

We appreciate your help in protecting our authors and our ability to bring you valuable content.

Questions

If you have a problem with any aspect of this book, you can contact us at [email protected], and we will do our best to address the problem.