Low Code Apps for Dummies
Low Code Apps for Dummies
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Low-Code Apps For Dummies®, 2nd ServiceNow Special Edition
Published by
John Wiley & Sons, Inc.
111 River St.
Hoboken, NJ 07030-5774
www.wiley.com
Copyright © 2023 by John Wiley & Sons, Inc.
No part of this publication may be reproduced, stored in a retrieval system or transmitted in any
form or by any means, electronic, mechanical, photocopying, recording, scanning or otherwise,
except as permitted under Sections 107 or 108 of the 1976 United States Copyright Act, without
the prior written permission of the Publisher. Requests to the Publisher for permission should be
addressed to the Permissions Department, John Wiley & Sons, Inc., 111 River Street, Hoboken, NJ
07030, (201) 748-6011, fax (201) 748-6008, or online at http://www.wiley.com/go/permissions.
Trademarks: Wiley, For Dummies, the Dummies Man logo, The Dummies Way, Dummies.com,
Making Everything Easier, and related trade dress are trademarks or registered trademarks of
John Wiley & Sons, Inc. and/or its affiliates in the United States and other countries, and may not
be used without written permission. ServiceNow and the ServiceNow logo are registered
trademarks of ServiceNow. All other trademarks are the property of their respective owners. John
Wiley & Sons, Inc., is not associated with any product or vendor mentioned in this book.
For general information on our other products and services, or how to create a custom For Dummies
book for your business or organization, please contact our Business Development Department in
the U.S. at 877-409-4177, contact [email protected], or visit www.wiley.com/go/custompub. For
information about licensing the For Dummies brand for products or services, contact
BrandedRights&[email protected].
ISBN: 978-1-394-18316-6 (pbk); ISBN: 978-1-394-18317-3 (ebk). Some blank pages in the print
version may not be included in the ePDF version.
Publisher’s Acknowledgments
Some of the people who helped bring this book to market include the
following:
Project Manager and Development Client Account Manager:
Editor: Carrie Burchfield-Leighton Cynthia Tweed
Sr. Managing Editor: Rev Mengle Special Help: Donna Tomasi
Managing Editor: Camille Graves
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Table of Contents
INTRODUCTION................................................................................................ 1
About This Book.................................................................................... 1
Foolish Assumptions............................................................................. 2
Icons Used in This Book........................................................................ 3
Beyond the Book................................................................................... 3
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
CHAPTER 4: Logic and Workflow.................................................................. 33
Building Dynamic Form Logic............................................................ 33
Validating and Simplifying Updates with Business Rules............... 34
Driving Value with Workflows............................................................ 35
Going with the flow with Flow Designer...................................... 36
Simplifying your process with Process Automation
Designer.......................................................................................... 39
Connecting to Third-Party Systems with Integration Hub.............. 41
Using Notifications to Communicate................................................ 42
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Introduction
W
hen it comes to digital transformation, many organiza-
tions need to move faster to meet changing business
requirements — and it takes a lot of software in the
form of applications (apps) to accelerate and improve how work
gets done. In the past, IT was the go-to group for getting those
apps built and delivered. These days, IT teams are pretty maxed
out, and project backlogs are commonplace. The good news is that
you can increase your app delivery capacity by empowering more
people to build applications with less complexity. And that’s
exactly the premise behind low-code development.
Introduction 1
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Low-Code Apps For Dummies, 2nd ServiceNow Special Edition, con-
sists of six chapters that explore the following:
Foolish Assumptions
We made some assumptions about you, our reader, when we
wrote this book. Mainly, we assume the following:
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Icons Used in This Book
Throughout this book, we use icons in the margins to draw your
attention to certain kinds of information. Here’s what the icons
mean:
Whenever you see the Tip icon, you can be sure to find some use-
ful nuggets of information that save you time or money or just
make your life a little easier — at least when it comes to develop-
ing apps.
The Warning icon alerts you to things that could cause you big
headaches. Think of these as orange cones in the road, warning
you about an open manhole cover. Sure, you could ignore them,
but you may take a nasty fall.
»» servicenow.com/workflows/creator-workflows.html:
Visit the ServiceNow Creator Workflows page to discover
more about building connected digital workflow apps with
a low-code platform.
»» developer.servicenow.com/builder: The ServiceNow
Builder Page has plenty of beneficial links to help you get
started fast. Get a free personal developer instance, helpful
videos, online learning plans, and more.
Introduction 3
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
»» devlink.sn/builder-videos: This video series takes you
through the “how-to” steps of building an example app by
using the concepts and capabilities presented in this book.
»» knowledge.servicenow.com: This link takes you to
ServiceNow’s annual Knowledge Conference page. The
CreatorCon event at Knowledge contains many hands-on
workshops tailored to you, the builder. Sign up to stay
informed about Knowledge keynotes, speakers, and events.
»» docs.servicenow.com: The ServiceNow product documen-
tation site has full documentation to the various platform
capabilities mentioned in this book.
»» community.servicenow.com: If you find yourself in need of
help, the thousands of subject matter experts in the
ServiceNow community are eager to offer help on a variety
of topics.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
IN THIS CHAPTER
»» Asking the right questions before
building an app
Chapter 1
Beginning with a Plan
Y
ou probably wouldn’t head out on a road trip without at
least a general idea of how to get where you’re going — at
least not if you want to get there anytime soon. Planning is
essential in life, as well as in app development.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Before you start building, begin with the end in mind.
Understanding and visualizing (virtually or on a whiteboard)
your desired solution helps determine the remaining steps in
building your app. Often, the outputs are the drivers for the
inputs. If you’re trying to speed up a process, for example,
knowing your output metrics can help make clear what to
measure. If you’re managing assets, perhaps cost and location
are more important than the minute details of each item.
Identifying your goals and objectives ensures you can manage
conversations with key stakeholders so your app is specifically
addressing your desired business outcomes.
Here’s an example of a clear objective: Reduce the time it
takes to route and approve time-off requests from five days to
less than one day.
»» Are you taking a spreadsheet and turning it into an app
in ServiceNow, or does the app exist somewhere else?
This question impacts your approach for building the app
because there are different tools within the platform to
support your efforts.
Take this opportunity to review and revise your process. Too
many times, processes are dictated by limitations of legacy
tools. Don’t cripple your new app by trying to make it work
like the old one did. After all, if the old app worked perfectly,
you wouldn’t be building a new one, right?
»» Who will be using your app? Identifying your target
audience has a direct impact on the features your app will
provide, the data it will capture, and the interface you’ll need
to provide for your app.
»» Do you want everyone to have the same ability to see
and edit fields, or will some people need more or less
access than others? Security is a significant and ever-
growing concern in most organizations, so identifying who
has access to what during the planning stage is a critical step
in app development.
»» What will the users do with the app? Will they be provid-
ing information, collecting information, routing information,
requesting information, looking up information, and/or
collaborating on information? Identifying these actions
establishes the features and functions you need to build
into your app.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
»» Where is the data coming from? One of the most common
assumptions is that data will be entered by people. Some
data (like users, departments, and locations) may already be
available within your ServiceNow instance (your very own
installation of ServiceNow software in the cloud). You may
also find that you require data from an external data source
that you need to import.
When necessary, leverage existing data sources to avoid
data entry duplication and make sure your app has the data
it needs to meet its business objectives.
»» How will people interact with your app? Will they
use desktop computers, mobile devices, or both?
Understanding how people access your app impacts how
your app will function. Will they act with a swipe of a finger
or click of a mouse?
»» Can you walk through one or more example use cases or
scenarios? Walking through an example use case, or “day in
the life of,” is a great way to discover an app’s requirements.
»» Is there an existing app or template in ServiceNow that
already does (most of) what you need? Why reinvent the
wheel? If there is an app or app template that does what you
need, or close to it, look at the possibility of using or
extending that existing app.
Many organizations think that their processes are unique
when they’re actually pretty similar to what other organiza-
tions have done before. Take advantage of that similarity.
»» How will you measure the success of your app? If your
app is meeting a business purpose, you may want to provide
reports showing usage, adoption, and key performance
indicators (KPIs) associated with the app to show outcomes
achieved.
»» Is this a good fit? Not every app idea makes for a good fit
for a Creator Workflow. In general, your app is a good fit if it
involves
• Simple forms
• Task management
• Repeatable processes
• Excel-driven processes
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
• Request fulfillment
• Third-party integration
»» Unstructured data
»» Graphics processing or streaming video or audio
»» Unrepeatable processes
Make sure your app is a good fit for ServiceNow before you start
building.
You can rebuild PoC apps, but don’t import them from your PDI
into your organization’s instance. There is information included
with your app that indicates where it was built. If you bring the
app over from your PDI, life will be a lot harder when you try to
get your app into production.
Apps that your organization will actually use (for example, pro-
duction apps) should be created in your organization’s developer
instance so the app can follow your organization’s testing and
deployment process. See your ServiceNow System Administra-
tor for more details about which instance to use for an app that
will eventually be deployed to your organization’s production
instance.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Naming your tables and fields
After your app is created, you’ll most likely be creating new tables
and fields for it. Tables and fields have both labels (displayed in
your browser and mobile user interface, or UI) as well as internal
database names. Labels can be edited and even translated later,
but internal database names can only be edited at creation time.
You can always relabel, but you can’t rename. If you want to pro-
vide a longer description, ServiceNow offers hover-over tips and
clickable links.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
The ServiceNow developer portal has something to offer all skill
levels when it comes to solving real business problems using Cre-
ator Workflows, so don’t let the name developer throw you off. You
can find the following free perks:
»» A PDI: You can use your own instance running the supported
ServiceNow release of your choice. Use your admin-level
access to configure the instance and make amazing apps.
»» Early access: Developer program members get access to the
latest ServiceNow releases before they’re generally available
to the public.
»» Training: Gain access to free learning plans, best practices,
videos, and training modules.
»» Developer documentation: As your experience grows,
ServiceNow can provide detailed documentation to assist
even the most experienced developer.
»» User contributed solutions: Explore the library of shared
solutions other developers have created from short utilities
to full-blown applications ready to install.
»» Online and in-person events: As part of the developer
program, you’re invited to ServiceNow developer events such
as CreatorCon at the company’s annual Knowledge Conference,
as well as virtual and local events like hackathons, hands-on
workshops, labs, meetups, and much more.
»» Community: Get access to developer-oriented forums
designed to help you build better apps. You can connect with
and get guidance from other ServiceNow developers through
online forums and in-person meetups.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
IN THIS CHAPTER
»» Seeing what tools you have at your
disposal
Chapter 2
Storing Your Information
A
fter you’ve planned your app (see Chapter 1), you’re ready
to build your tables to store your data. In addition, you’ll
create fields in tables, possibly loading the table(s) with
data and making sure the right people can access that data.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
»» Now Experience UI Builder: UI Builder allows you to create
workspace and portal experiences using a drag-and-drop
interface. From simple page layout to advanced component
configuration, UI Builder offers a lot.
»» Flow Designer: Flow Designer enables process owners
to use natural language to automate approvals, tasks,
notifications, and record operations without having to
code.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 2-1: Creating a table in the ServiceNow app.
When you create a table from scratch, you can’t go back and make
it an extended table. Likewise, when you create an extended table,
you can’t “unextend” it later. If you made a mistake when you
started out and you want to change it now, you need to create a
new table and migrate your data.
Extending a table
When you extend a table, your new table inherits all the fields and
functionality from the table you’re extending, saving you time.
By far the most common table to extend in ServiceNow is the task
table.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 2-2: Extending a table can accelerate your app build process.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
You may want to extend a table in the following circumstances:
Uploading a spreadsheet
If you’re creating an app based on a spreadsheet, each work-
sheet is likely to map to a table in ServiceNow, each column may
become a field in that table, and each row may become a record in
that table (see Figure 2-3 and 2-4).
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 2-4: ServiceNow tables use records and fields to store data.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
“Extending a table”), but you don’t get any existing fields beyond
the standard system fields (we cover this in more detail in the
later section “Field attributes”).
Creating Fields
After you’ve created a table, you need to add fields to it. Servi-
ceNow has many different field types with built-in validation.
Choose the one that best fits that field’s data type.
You can easily make plain-text (string) fields where people can
enter anything, but doing so can result in bad and inconsistent
data that’s difficult to use. For example, if you have a field on your
table for someone’s name, you use a plain-text (string) field and
end up with data like you see in Figure 2-5.
FIGURE 2-5: Using the wrong field type can lead to data inconsistency issues.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
You can use reference fields to make your data consistent (or
normalize it) by referencing an existing table in ServiceNow.
ServiceNow has more than 2,000 tables at your disposal.
Table 2-1 lists some commonly used tables for building an app in
ServiceNow.
Location cmn_ List of all user locations. Users are typically associated
location with a location.
Group sys_user_ List of all the groups. Users are typically associated with
group groups and inherit any security roles associated with
those groups.
Role sys_user_ List of security roles in the instance. Some will be default
role roles; others will be created by your organization.
Task task The common base table that gets extended. It has fields
and functionality related to assigning work across teams
and individuals, managing the state or the task, and
other functions.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
TABLE 2-2 Commonly Used Field Types
Field Type Notes
Integer A freeform input field that accepts number values only. Use this field
type if the value will always be a number and you may be using it in
calculations.
Currency A freeform input field with a currency type. Use this field type when
dealing with money.
Reference A record picker. Use this field type when you want to reference a
record from another table.
Choice A drop-down list. Use this field type when you need a short list of
options to present to the user.
Date A date picker. Use this field type if you don’t need a specific time.
Date/time A date/time picker. Use this field type if you’re comparing specific
times or the exact time is important.
String A freeform text field. Use this field type if no other field type fits your
purposes.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
The user can also use the magnifying glass icon to bring up a
list and, optionally, filter to choose a name from that list.
»» What are your data values? In the preceding bullet about
colors, the option for Red may actually contain a value of
#FF0000. This relationship is fairly clear.
Unlike choice fields (which offer one option to one value),
reference fields can have additional information related to
the displayed choice. The user would still pick Red from a list
of car colors, for example, but the related record would have
much richer information. For example, a value of #FF0000, a
default distributor, pricing information, and more.
Field attributes
Each field can have various attributes. Some attributes are based
on the field type, and others are common to all fields. Be sure
to review the field types to determine if you want the field to be
read-only, to be mandatory, to contain a default value, and more.
How you set your field attributes can make a big impact on how
users interact with your app.
Sys ID sys_id The unique identifier for the record. This is auto-
assigned and unique throughout the instance.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Putting the Finishing Touches
on Your Tables
Creating a table is much like picking out a car — you may have
your mind set on a make, model, and perhaps a color, but have
you considered the accessories like the tires, the stereo system,
the engine size, the interior style, the electronic gadgets? If you
choose wrong, some of these can be swapped out or upgraded
later, but others are permanent, and you’re going to have to live
with them.
With tables, it’s much the same. This section explains some of
those check boxes, drop-downs, and other fields you encounter
when you create your tables.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Making your table extensible
You can make any table you create capable of being extended to
other tables simply by checking the Extensible check box.
Consider an app that tracks safety issues. It’s much easier for
someone to call in and refer to SAFT0010022 than it is to try
searching for “that thing that happened in the break room where
the wire wasn’t plugged in to the doohickey.”
Managing Access
In Chapter 1, we cover planning considerations and making sure
everyone has the correct ability to see and edit your data. So as
you create your tables, this is a good time to remind you to con-
sider “who needs what.”
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
There are four types of access: create, read, write, and delete.
Each role you create may have different access. Consider grant-
ing the appropriate access based on the personas, or roles, your
app requires. For example, you may want a user with an approver
role to your app to have read and write access, but not create and
delete access, whereas a user with an employee role may need to
create as well as read and write.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
IN THIS CHAPTER
»» Getting to know forms and lists
»» Providing a workspace
Chapter 3
Creating Amazing
Experiences
H
ow will people interact with your application? Creator
Workflows offers several ways to allow your users to inter-
act with your app (for more info on Creator Workflows,
check out Chapter 1). There are standard forms and lists, a native
mobile application, a custom portal, and a more recent user inter-
face (UI) that ServiceNow simply calls Workspace. Each has its own
merits and is well suited for a specific type of persona or the work
he or she typically does.
When building your app, you should think about several design
considerations. Will your app be accessed via desktop, mobile,
or both? Is your target audience already using an application on
ServiceNow where it’s comfortable using forms and lists, or will
it need a self-service type of interface? Will your audience be
doing quick updates on the go, or does it work in ServiceNow the
majority of the workday? This chapter has you covered.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Using Forms and Lists
The most common method of accessing data in ServiceNow is
through forms and lists. A form displays information from one
record in a data table, and a list displays a set of records from a
table. Users may interact with a form or list across multiple inter-
faces, such as Workspace, portal, or the platform UI, but the fol-
lowing guidelines apply no matter the interface:
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
»» The left and right sides of the upper form feel unbalanced
with more items on either the right or left.
»» Similar fields aren’t grouped together (for example, “assign-
ment group” and “assigned to” are nowhere near each other).
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
»» Short fields are balanced left and right where possible.
»» The form has been divided into sections for easier viewing
and data entry.
Taking It Mobile
ServiceNow offers native mobile capabilities for Android and iOS
users. If users require functionality like geolocation or offline
access to your data, you can use one of the two native ServiceNow
apps: Mobile Agent, for the agents and fulfillers, and Now Mobile
for your end-users (see Figure 3-3). The development is done
by creating a mobile application in Studio inside of the applica-
tion you’ve been building. You don’t need to learn iOS or Android
development tools. The Now Platform takes care of the hard part,
allowing you to focus on the logic and presentation of your app.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
WHAT MAKES A GOOD MOBILE
EXPERIENCE?
Mobile apps aren’t designed to be a mobile version of all desktop
functionality. The best mobile experiences come from quick interac-
tions. When creating a mobile experience, keep the actions simple to
allow users to create and update records. Think about the mobile
apps you use the most to hail a ride or shop online. You open the app,
you make your request, and you’re done in a few minutes. The idea of
mobile is to make it quick and easy. Some people have referred to
this as a targeted micro-experience.
If you use App Engine Studio (AES) to get your app started, click-
ing the mobile option allows you to easily create a mobile experi-
ence simply by choosing tables. Additionally, you can configure
mobile apps by using Mobile App Builder (found in AES).
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 3-4: Easily manage multiple interactions with Workspace.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 3-5: The built-in report builder offers a wizard experience for easy
report generation.
You can also use dashboards to show multiple reports on one page
like the example you see in Figure 3-6. Be careful with the number
of reports you add to a dashboard. If you have too many reports on
a dashboard and multiple users are using that dashboard, it could
affect overall instance performance.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 3-6: Dashboards are a useful way to group your reports and gain
quick insights.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
IN THIS CHAPTER
»» Guiding your users with form logic
Chapter 4
Logic and Workflow
A
fter you’ve created your application’s data model and
provided your users a way to access the data, you’re ready
to add some logic. Logic is what makes your app a useful
tool. It can come in many forms, ranging from workflow logic to
form logic (what people can and can’t see or use on a form) to
business logic (rules that govern what happens to data after it’s
entered) to notifications (making users aware of conditions and
events within the app). Logically, this chapter covers logic.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
User interface (UI) policies are useful for conditional suggestions
like showing and hiding fields or adding field messages based on
another field’s value, while data policies and business rules are
better suited for doing conditional enforcement like making a
field mandatory.
FIGURE 4-1: A UI policy checks the value of the category and displays the due
date when the category is Big.
When the category is set to Small, shown in Figure 4-2, the form
automatically updates to hide the Due Date field.
FIGURE 4-2: The same UI policy hides the due date when the category is Small.
The best user experience happens when you utilize both sugges-
tion and enforcement together.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
As an example, let’s define a business rule to validate that the due
date entered wasn’t in the past. The trigger could be that the due
date has changed and the date is at or before the current minute.
This is easy to construct using the condition builder like the one
shown in Figure 4-3.
FIGURE 4-3: Use the condition builder to easily construct business rule
triggers.
If the user enters a date in the past, then the trigger condition is
true. It displays a message and stops processing as defined on the
action part of the form (see Figure 4-4).
FIGURE 4-4: Update record field values or display a message and stop
processing.
More complex logic with multiple steps can be done via Flow
Designer, described in the section, “Driving Value with Workflows.”
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Consider an example of getting tuition reimbursement. After a
student submits the form, someone may need to be notified of
a new request. You may also require an approval based on a cost
threshold and finally disbursement of the funds. A simple table of
records still needs someone to move each record along through
the process. Workflows drive value from your data through pro-
cess optimization.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
specific conditions for new or updated records. For example,
only start an approval on an expense report when the state
changes to approval. A condition can be applied to the trigger
to filter which record actions can trigger the flow.
»» Incoming email: It’s also possible to run your business logic
based on an incoming email from a user or system. For
example, when a use sends a new email, create a new
record in a table to capture that issue or request.
»» Scheduled: Run a flow once or on a repeating interval. One
example is to find all requested approvals that haven’t been
updated in the last week and send a reminder notification to
the approvers.
»» Representational State Transfer (REST): You may need to
trigger some business logic based on an external trigger
such as your customer management system identifying that
a new customer has been created. The other system can use
REST web service to trigger a flow in ServiceNow.
»» Application: Application triggers may be associated to a
Service Catalog item (for example, ordering a laptop), incoming
email, or other triggers. This provides the same easy-to-use
Flow Designer capabilities to carry out approvals, notifications,
decisions, and more. See how easy automation can be?
Flow Designer actions are the part of the flow that do something
(for example, send an email notification, update a record, look
up records, or create new records). Flow Logic can be applied to
make decisions about the data in your flow. There are several
logic choices, including “if” (see Figure 4-5) and “decision tree”
(created with the Decision Builder) to conditionally determine
whether to run a set of actions (or not), looping constructs like
“for-each” and “do-until” to iterate on a list of items like records
from a lookup action, or just tell your flow to hang out and wait a
certain amount of time.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 4-5: A conditional record update flow in Flow Designer.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
REDUCING FLOW MAINTENANCE
WITH DECISION BUILDER
Processes change due to many factors — customer requirements, eco-
nomic climate, organizational changes, and more. As a result, your
workflow needs to adapt. One way to minimize the maintenance is to
abstract the decisions from the workflows. You see, to update a work-
flow, you likely need to go to your development instance, make the
changes, and then follow the standard promotion process to get it tested
and into production. That could take a while depending on your organi-
zation’s change management and release management processes.
By separating the decision data from the flow data, you can adapt
much quicker. Let’s use an example of a customer loyalty app. Say
that today a customer needs 1,000 points to achieve bronze level
status, 5,000 points for silver, and 10,000 for gold. Then someone
decides the rules have changed and it’s now 2,500, 10,000, and 25,000
respectively. The best way to address this is to leave the decision-
making logic in the flow, but abstract the decision table itself so it can
be changed as needed without impacting the flow itself.
That’s what Decision Builder provides. It’s a way to build and maintain
the conditions of your loyalty program and return a result (for exam-
ple, bronze, silver, or gold) to the flow to follow the correct path for
approval, discounts, or some other reward.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
PAD doesn’t replace Flow Designer; instead, it leverages it as the
action plan behind each process activity. Flow Designer is ideal for
creating targeted flows that solve a specific business case. Exam-
ples include updating a record from a certain trigger, processing
an inbound email, running SLA automation, or fulfilling Service
Catalog requests.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Connecting to Third-Party Systems
with Integration Hub
If your app needs to send or receive information to a third-party
system, you’re going to need an integration. Fortunately, you
can use Flow Designer by leveraging prebuilt integration actions
from Integration Hub. In Flow Designer, you simply select from
available Integration Hub bundles of actions called spokes (see
Figure 4-7) while building a flow to easily allow ServiceNow to
interact with other systems in your application landscape. For
example, if your team uses Slack for collaboration, you can have
your flow send a notification automatically to a Slack channel. For
the available spokes in your organization, contact your Service-
Now System Administrator.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Using Notifications to Communicate
Most applications need some sort of email notifications config-
ured. Some examples of that are
FIGURE 4-8: Use notifications to keep others informed at key points in your
process.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
The notification table contains many examples. A quick way to
build a new notification is to copy an existing record and change
it to suit your purposes. When you’re working with notifications,
keep in mind the following tips:
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
IN THIS CHAPTER
»» Adding a chatbot
»» Using surveys
»» Adding intelligence
Chapter 5
More Low-Code
Capabilities
I
n this chapter, you explore some additional low-code capabili-
ties of ServiceNow that you can use to enhance your app and the
user experience. You aren’t required to use any of these capa-
bilities in your app, but it’s great to know what they are and the
value they can add.
Building a Chatbot
If your app has one or more high-volume/low-complexity tasks,
you may want to consider a chatbot. Virtual Agent is a conversa-
tional bot platform for providing user assistance through conver-
sations within a messaging interface. Use Virtual Agent to build
bots and design bot conversations that help your users quickly
obtain information, make decisions, and perform common work
tasks.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Components of Virtual Agent
The Virtual Agent platform includes the following components:
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 5-1: You can handoff to a live agent as needed with a chatbot.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Testing Your App
Before deploying your app to production, your IT or app develop-
ment group may require you to build a test to ensure its function-
ality and avoid surprises down the road. Even if they don’t require
a test, it makes sense to invest a few minutes to validate your app.
FIGURE 5-2: Validate a release and speed up upgrades with the click of a
button with ATF.
Components of ATF
Understanding the components of ATF can help you build more
effective and easy-to-run tests. A test is made up of steps you
define. These include things like opening a form, filling in fields,
and validating results. You can run each test individually or as
a collection called a test suite. Test suites are typically grouped
together functionally. For example, if your app is fairly simple,
you could have a test suite for your entire app and test it with one
click from the test suite.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Benefits of ATF
ATF provides the following benefits for change managers and
builders/developers:
Sending Surveys
With the ServiceNow Survey Management application, shown in
Figure 5-3, you can create, send, and collect responses for basic
surveys. The survey designer lets you create survey categories and
questions, configure the details, and publish the survey to specific
users or groups.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 5-3: Create and configure surveys using the Survey Designer.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Offering Self-Paced, Onscreen Training
Guided tours help train and onboard users within the ServiceNow
user interface (UI). Each tour contains a series of interactive steps
that help users complete online tasks within the browser window.
Administrators can create tours for ServiceNow applications, ser-
vice portals, and custom applications. Figure 5-5 shows you the
Guided Tour Designer that’s used to create tours that demonstrate
how to use a feature. For example, you can create a tour to repre-
sent a training model for specific policies and processes, such as
creating a new claim or reviewing expense reports.
Guided tours use a series of steps that may span multiple pages.
You can create purely informational steps that users read through
and acknowledge, which results in no change to the ServiceNow
instance. Alternatively, you can provide users with an interactive
experience where they click through and actively work with the
application at hand. For example, an Introduction to Incidents
tour may simply show them the key features of the Incidents
table, while a Create Your First Incident tour would walk them
through creating a real incident, which results in a new record in
the Incidents list.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
FIGURE 5-6: The Guided Tour application menu.
Adding Intelligence
The Now Intelligence products can help you lower costs and
increase productivity through process improvement, self-service,
and automation. Service owners can deliver and refine artificial
intelligence (AI) capabilities quickly, gaining greater insight into
real-time patterns and trends for service delivery teams. This
information enables you to make better, faster decisions —
without the need for data science expertise.
Requesting help
If you want to provide your users with a way to interact with your
applications using natural language, you can use the built-in
technology called Natural Language Understanding (NLU).
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Requesting information
To heighten the NLU experience (see the preceding section), you
can use Natural Language Query (NLQ). Along with making it easy
to enter information, Now Intelligence products can also retrieve
or report information with NLQ. Reduce the number of requests
you get to create specific reports by enabling users to get their
information with human queries. For example, typing “open p1
incidents for my team” returns a list of incidents where the prior-
ity is 1, and the records are assigned to any member of your team.
NLQ is available within reporting or from the standard platform
lists (see Figure 5-7).
FIGURE 5-7: Clicking the speech icon at the top of a list activates the
NLQ prompt.
Performance Analytics
ServiceNow Performance Analytics (PA) is an in-platform process
optimization solution to create management dashboards, report
on key performance indicators (KPIs) and metrics, and answer
key business questions to help increase quality and reduce the
costs of service delivery.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
IN THIS CHAPTER
»» Planning effectively
Chapter 6
Ten Tips for Low-Code
App Development
T
he tips in this chapter come from years of experience across
thousands of implementations by customers, partners, and
ServiceNow developers. We hope that following these ten
tips when building your app brings you much success!
Make a Plan
When you begin with a plan, you have a clear picture of the out-
come you’re looking for and how to get there, and that means you
have a greater chance of success. For more info on this tip, check
out Chapter 1.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Consider Common Personas and Roles
In most apps, there are several default roles to consider when
you build your app. A user (or requester) role is often assigned to
someone who typically creates the record, checks the status, and
makes small updates on their own behalf. An admin is someone
responsible for the management and maintenance of the app.
We often see a role for someone responsible for interacting with
the record to drive the process; this persona may have a name
like agent or fulfiller. You may opt to create a separate role for an
approver, who’s only involved with a specific approval step in your
app. Check out Chapter 2 for more information.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
removed. A better method is to add a True/False field (often called
Active) to enable you to deactivate records like those of former
employees. After that, you can use a filter such as “Active | is |
true” to display just the active records. This filter is also known
as a reference qualifier.
Use both good test cases (where you expect it to pass) and bad
test cases (where you expect it to fail). When you use ATF, you can
validate changes before going to production and reduce upgrade
time between ServiceNow versions. We cover ATF in detail in
Chapter 5.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
Work with Your Developers
ServiceNow is a single development platform that accommodates
developers of all skill levels working cooperatively. This helps
more people to build using low-code capabilities and to leverage
the developer skill set as needed.
These materials are © 2023 John Wiley & Sons, Inc. Any dissemination, distribution, or unauthorized use is strictly prohibited.
WILEY END USER LICENSE AGREEMENT
Go to www.wiley.com/go/eula to access Wiley’s ebook EULA.