Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Mastering ServiceNow
Mastering ServiceNow

Mastering ServiceNow: Unleash the full potential of ServiceNow from foundations to advanced functions, with this hands-on expert guide fully revised for the Helsinki version , Second Edition

eBook
€27.98 €39.99
Paperback
€49.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Mastering ServiceNow

Chapter 2. Developing Custom Applications

The ServiceNow platform provides a rich functional interface for getting things done, whether you are building a new application or using it. Chapter 1, ServiceNow Foundations, looked at some basic elements, such as creating tables and fields to store your data, and how your data is displayed in tables and fields. This chapter builds on those fundamentals, looking at more ways to connect and model data, build applications faster, and prevent unintended consequences through conflicts. It's a little like having an architect providing that extra flourish to make our hotel not only sturdy, but also work well.

In this chapter, we will cover the following topics:

  • How ServiceNow Studio provides a single, integrated IDE that collects everything in one place
  • Seeing how applications control the flow of information with myriad of settings and options
  • Use Delegated Development to let other users configure your application
  • Using hierarchical tables...

Developing applications in Studio

In the previous chapter, we started building the Hotel application. This included defining the data storage needed by building tables, exploring the dictionary, and creating relationships. All these items are in different menus, meaning you need to keep navigating to different places, without a consistent overview.

ServiceNow Studio is designed to help with this. It provides a single location where all the configuration for the app is collected together. This lets you jump among the things you are working on without the clutter of configuration from other areas. Here's how to use it:

  1. Open up Studio by navigating to System Applications > Studio, click on the Go button under Open Studio, and then click on Hotel in the Load Applications dialog.
  2. Studio collects all the configuration together, making it easy to find existing artifacts and create new ones. The Application Explorer sidebar contains a categorized list of Application Files, while the Go To...

Scoping out limits

Running multiple applications on the ServiceNow platform brings benefits of scale. You may have IT using it to organize production issues, HR may perform case management, while the maintenance team use it to track leaky taps-each using separate, specialist applications that are built for their use. Since you are using a single platform, it makes it possible to share some data.

The Users table is a great example of this. While each department will want to control the privileges that each person has (someone from the facilities team probably shouldn't have access to all the payroll data), sharing the core data means there is one place to go and update. If you change your name, isn't it nice to do it on one system, without relying on complex integrations to simulate a cohesive system?

The diagram below represents how many applications all need to reply upon shared resources, like the user table.

Scoping out limits

Also, you often want applications to talk to each other. Consider that...

Enforcing the separation

Consider your ServiceNow applications as a room (or floor) within a building (what an original metaphor, right?). While open-plan living is sometimes an advantage, it doesn't afford much privacy. Sometimes you want a door (and lock) to stop people wandering in and out of your room.

The ServiceNow platform gives you control. It acts as the application's doorman, deciding what comes in and what can go out. We'll see that there are many ways to be specific about how apps can affect each other. This is especially important when you install apps you haven't developed yourself.

Whenever the platform performs an action, it checks to see if it crosses a scope boundary. If a script was run in an IT scope, it will have access to all the tables and data that belong to the IT app. But it may not have access to data in the HR scope. The scope acts as the containing bubble; if all the elements have the same scope, it's fine. But the doorman will intervene...

Building hierarchical tables

Chapter 1ServiceNow Foundations,  introduced the foundations of ServiceNow. One of the most fundamental parts of an application is how it stores its data, and we saw how virtually everything you see and do in the platform is stored in the database.

Specifically, ServiceNow is built on a relational database. Instances hosted by ServiceNow use MySQL, a popular open source database that is robust, well featured, and scalable. These kinds of relational databases are relatively simple to understand, which is one of the reasons they are most commonly used: data is held in tables and columns, and relationships may exist between rows.

Tip

The ServiceNow platform can run on almost any relational database, such as Oracle or SQL Server. But supporting different architectures is difficult, so it is not a standard offering.

Benefiting from an object-oriented design

The simplicity of a relational database means that, on its own, it does not easily represent the data...

Many-to-many relationships

Another type of relationship between records is many-to-many. The relationship between siblings is many-to-many. I can have many brothers and sisters, as can they. But how can I store this information? A reference field can only point to one record.

Adding a lot of reference fields into a form is one way. I could create as many reference fields as I have siblings. However, that's not great design. What if another brother or sister were born? Making new fields every time a new baby arrives is not cool.

Instead, we could create another table that sits in between two records, acting as the "glue" that sticks them together. This many-to-many table has two reference fields, each pointing to a different side of the relationship.

In the hotel application, we want to take reservations for our guests. Each reservation might be for more than one person, and each person might have more than one reservation. This sounds like the perfect use for a many-to-many...

Developing applications in Studio


In the previous chapter, we started building the Hotel application. This included defining the data storage needed by building tables, exploring the dictionary, and creating relationships. All these items are in different menus, meaning you need to keep navigating to different places, without a consistent overview.

ServiceNow Studio is designed to help with this. It provides a single location where all the configuration for the app is collected together. This lets you jump among the things you are working on without the clutter of configuration from other areas. Here's how to use it:

  1. Open up Studio by navigating to System Applications > Studio, click on the Go button under Open Studio, and then click on Hotel in the Load Applications dialog.

  2. Studio collects all the configuration together, making it easy to find existing artifacts and create new ones. The Application Explorer sidebar contains a categorized list of Application Files, while the Go To and Code...

Scoping out limits


Running multiple applications on the ServiceNow platform brings benefits of scale. You may have IT using it to organize production issues, HR may perform case management, while the maintenance team use it to track leaky taps-each using separate, specialist applications that are built for their use. Since you are using a single platform, it makes it possible to share some data.

The Users table is a great example of this. While each department will want to control the privileges that each person has (someone from the facilities team probably shouldn't have access to all the payroll data), sharing the core data means there is one place to go and update. If you change your name, isn't it nice to do it on one system, without relying on complex integrations to simulate a cohesive system?

The diagram below represents how many applications all need to reply upon shared resources, like the user table.

Also, you often want applications to talk to each other. Consider that a new employee...

Left arrow icon Right arrow icon

Key benefits

  • Give your ServiceNow Helsinki implementation a powerful kick-start by understanding the deep capabilities of the platform,
  • Learn by doing with an extended, comprehensive example, creating a feature-rich, secure and automated application from the ground up
  • Interact with your whole organization by integrating with REST web services and build a custom Service Portal interface

Description

ServiceNow is a SaaS application that provides workflow form-based applications. It is an ideal platform for creating enterprise-level applications giving requesters and fulfillers improved visibility and access to a process. ServiceNow-based applications often replace email by providing a better way to get work done. The book steps through the main aspects of the ServiceNow platform, from the ground up. It starts by exploring the core architecture of ServiceNow, including building the right data structure. To add business logic and control data, and interactivity to user interaction, you will be shown how to code on both server and the client. You will then learn more about the power of tasks, events and notifications. The book will then focus on using web services and other mechanisms to integrate ServiceNow with other systems. Furthermore, you will learn how to secure applications and data, and understand how ServiceNow performs logging and error reporting. You will then be shown how to package your applications and changes, so they can be installed elsewhere and ways to maintain them easily. If you wish to create an alternative simple interface, then explore ways to make ServiceNow beautiful using Service Portal. By the end of the book, you will know the fundamentals of the ServiceNow platform, helping you be a better ServiceNow System Administrator or developer.

Who is this book for?

This book is aimed at advanced ServiceNow System Administrators and developers who would like to gain greater control of ServiceNow and its architecture. The book expects you to be new to ServiceNow, but have a good grounding in internet and computing technologies, like HTML, JSON, REST and database systems. Readers should be especially familiar with JavaScript, and be keen to extend and alter the platform. With this book, they will be able to develop a new application for their company.

What you will learn

  • Build custom scoped applications that access the full ServiceNow API
  • Build a modern, responsive self-service interface with Service Portal
  • Design feature-rich, responsive, automated workflow systems
  • Design powerful data-driven applications
  • Control information flow and apply business logic with Business Rules
  • Write efficient and effective client-side JavaScript
  • Learn how to authenticate and secure Web Services
  • Integrate and exchange data with people and systems
  • Create and secure your systems with proper access control

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Oct 27, 2016
Length: 656 pages
Edition : 2nd
Language : English
ISBN-13 : 9781786467423
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Oct 27, 2016
Length: 656 pages
Edition : 2nd
Language : English
ISBN-13 : 9781786467423
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total 133.97
Mastering ServiceNow
€49.99
ServiceNow Application Development
€41.99
Learning ServiceNow
€41.99
Total 133.97 Stars icon

Table of Contents

11 Chapters
1. ServiceNow Foundations Chevron down icon Chevron up icon
2. Developing Custom Applications Chevron down icon Chevron up icon
3. Server-Side Control Chevron down icon Chevron up icon
4. Client-Side Interaction Chevron down icon Chevron up icon
5. Getting Things Done with Tasks Chevron down icon Chevron up icon
6. Events, Notifications, and Reporting Chevron down icon Chevron up icon
7. Exchanging Data – Import Sets, Web Services, and other Integrations Chevron down icon Chevron up icon
8. Securing Applications and Data Chevron down icon Chevron up icon
9. Diagnosing ServiceNow – Knowing What Is Going On Chevron down icon Chevron up icon
10. Packaging with Applications, Update Sets, and Upgrades Chevron down icon Chevron up icon
11. Making ServiceNow Beautiful with Service Portal and Custom Interfaces Chevron down icon Chevron up icon

Customer reviews

Most Recent
Rating distribution
Full star icon Full star icon Full star icon Full star icon Half star icon 4.1
(17 Ratings)
5 star 64.7%
4 star 11.8%
3 star 0%
2 star 17.6%
1 star 5.9%
Filter icon Filter
Most Recent

Filter reviews by




Sam Feb 08, 2021
Full star icon Full star icon Full star icon Full star icon Full star icon 5
A great addition to keep for when you get stuck and prefer a book over the docs site.
Amazon Verified review Amazon
Dipanjan Saha Jul 21, 2020
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The book is good for developing your skills in ServiceNow. it teaches from basic to advance level
Amazon Verified review Amazon
RG Oct 12, 2019
Full star icon Empty star icon Empty star icon Empty star icon Empty star icon 1
Online internet content is better. These books cannot keep up with the rapid changes
Amazon Verified review Amazon
Mark Mar 01, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
My company bought ServiceNow, and I implement a piece of it. I have almost all books on ServiceNow and this one is the most useful. I regret I did not buy it two month ago when we started with ServiceNow. There are other comments about being dated. Yes, it is (it is from 2016) but still it is the best book on the market describing the different functions of ServiceNow.
Amazon Verified review Amazon
Ulisses Gomes Jan 04, 2019
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Excelente o trabalho de logística realizado pela Amazon; dentre os pontos a elogiar estão: disponibilidade do produto, rastreabilidade, cumprimento do prazo de entrega e condições da entrega do produto. Dentre os pontos a melhorar: prazo para entrega.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.