service
service
ServiceNow is a cloud-based platform that helps businesses manage IT services and automate
workflows efficiently. It is widely used for IT Service Management (ITSM), allowing organizations to
track and resolve IT issues, manage changes, and maintain IT assets.
1. Incident Management – Helps IT teams quickly log, track, and resolve technical issues,
ensuring minimal downtime for users.
2. Problem Management – Identifies and eliminates the root causes of recurring IT issues to
prevent future dincisruptions.
3. Change Management – Ensures IT system changes (such as software updates or
infrastructure modifications) are planned, tested, and implemented smoothly with minimal
risk.
4. Configuration Management Database (CMDB) – Maintains a detailed record of IT assets
(hardware, software, network devices) and their relationships, helping with troubleshooting
and impact analysis.
5. Service Catalog – Provides a self-service portal where employees can request IT services
(e.g., software installation, password reset) without contacting the IT department directly.
Beyond ITSM, ServiceNow also supports HR, customer service, security operations, and other
business functions, making it a powerful tool for digital transformation.
ServiceNow Salesforce
It is an IT service management software ● A Customer Relationship
that is used for automating workflows in Management (CRM) platform.
businesses. ● Helps companies manage sales,
marketing, and customer
support.
🔹 Key Features
● Provides tools to handle customer
interactions, sales pipelines, and
campaigns.
● Offers a customizable platform
called Lightning, which includes
Process Builder and Flow for
automation.
The Configuration Management Database (CMDB) is a central system that stores important
details about an organization's IT assets, called Configuration Items (CIs).
CIs are all the IT components that an organization uses, such as:
The CMDB helps IT teams manage and track all IT assets in one place. It shows how different
components are connected, making troubleshooting faster and change management safer. With
accurate data, IT teams can prevent issues, reduce downtime, and keep operations running
smoothly.
(In ServiceNow, a record is a single entry in a database table that contains specific information
about an item, request, or process.)
Example:
A company sets a Business Rule that automatically assigns all high-priority (Priority 1)
incidents to a specific IT team. This ensures urgent issues get addressed without delay.
Business Rules help automate tasks, improve efficiency, and reduce errors in IT processes.
javascript
CopyEdit
if (current.priority == 1) {
An instance is like your own personal ServiceNow account, but for a business. It is a
separate environment where a company can store data, manage IT services, and
automate workflows.
✅
Each company that uses ServiceNow gets its own instance, which means:
✅
Their data is separate from other companies.
✅
They can customize it as they want.
It is secure and isolated from others.
8. What is CMBD?
CMBD (Configuration Management Database) is a database in ServiceNow that stores
information about the organization's configuration of IT assets. These assets include
hardware and software components, network devices, and applications. CMBD enables
organizations to maintain the reliability and security of their systems by helping them
track, manage, and maintain the configuration of their IT applications and infrastructure.
ITIL is a set of rules and best practices that help IT teams manage and improve
their services. It ensures that businesses can use technology without major issues or
disruptions.
● When you open ServiceNow, you will see three main sections:
● 1️⃣ Banner – The top bar (for search, settings, and navigation).
2️⃣ Application Navigator – The left-side menu (list of all tools & applications).
3️⃣ Content Frame – The main area (where you see and edit information).
●
🚀
✔ Security – Protects company data from hackers.
● ServiceNow helps businesses work faster, safer, and smarter!
●
A list in ServiceNow is like a table of data where you can see many records at once.
Think of it like a class attendance register that a teacher uses to track students.
📌 Example: School Attendance Register
Imagine your teacher keeps a list of students to mark attendance.
📌
✔ Search – Find a specific record (e.g., a student named "John").
✏️
✔ Sort – Arrange records alphabetically or by date.
📂
✔ Edit – Change data directly (e.g., mark a student as "Absent").
✔ Filter – Show only specific records (e.g., only "Absent" students).
🔹
A Table = A single sheet of data, like an Excel sheet.
🔹
A Database = A collection of multiple tables, like a library of records.
Tables store data, but databases manage them efficiently with security &
performance optimization.
16. What is the purpose of a data model in ServiceNow?
A Data Model is like a well-organized cupboard that helps store and manage
information in a structured way.
2️⃣ Relationships 🔗
● Tables connect to each other like a web.
● Example: Each student is linked to a class, and each class is linked to a
teacher.
3️⃣ Keys 🔑
● Each record has a Unique ID (like a Roll Number for students).
● This prevents duplicate data and makes searching easy.
Access Control in ServiceNow is like a security system that decides who can enter, what
they can see, and what they can do inside the system.
1️⃣ Define Roles Create roles with different access Student, Teacher, Principal
rights
2️⃣ Define Access Set permissions for viewing, editing, Students can see grades,
and performing actions Teachers can edit grades
3️⃣ Assign Roles Assign roles to users based on their John (Student), Mary
job (Teacher), Alex (Principal)
4️⃣ Define Security Add extra security rules (e.g., time or Employees can only log in from
Policies location-based access) the office
❌
5️⃣ Evaluate ServiceNow checks if access should A student tries to edit grades
Requests be granted or denied → Denied!
🔹 A Student can enter the school but cannot enter the teacher’s office.
🔹 A Teacher can enter classrooms and offices but cannot change school policies.
🔹 The Principal can access everything.
🔹 Similarly, in ServiceNow, access control ensures that only the right people can access
the right data!
18. What is a script?
A Script in ServiceNow refers to a set of code instructions that can automate specific
tasks within the platform. Scripts are written in various programming languages, such as
JavaScript and Python. We can use scripts for numerous tasks, such as customizing the
UI or performing complex calculations. They are created and executed in several
platform parts, such as user interface actions and scheduled jobs.
19. What are the differences between a client script and a server
script?
Client scripts and server scripts automate several processes and tasks. While choosing
a server script, the task's complexity, requirement, and security must be considered.
Let's look at some key differences between a client script and a server script in
ServiceNow -
A client script is executed or run by the The server executes a server script.
client on their system.
Client scripts can only access the data Server scripts can access the
stored in the client browser. ServiceNow database and retrieve and
manipulate data stored on the server.
Client scripts are used to modify UI Server scripts create and update records
elements and perform simple operations. or manage emails and workflows.
Client scripts are less secure and are Server scripts are more secure and less
vulnerable to various cyber-attacks. prone to cyber-attacks.
● Step 1: The first step is creating an incident record by a user and evaluating
it. The incidents are resolved based on their priority, meaning that if an
incident is of high priority, it is immediately sent for resolution to the incident
management team.
● Step 4: Review the incident again after the resolution phase and make the
necessary changes. The incident record is then closed and archived in the
system.
● Audit log: ServiceNow maintains an audit log that records all the changes
made in the system. This helps us to stay aware if there are any
unauthorized changes made.
1️⃣ Changing the Look & Feel (Using CSS & JavaScript) 🎨🖥️
● CSS (Cascading Style Sheets) → Changes the design (color, font, size).
● JavaScript → Adds extra features (buttons, pop-ups, automatic actions).
🔹 Example:
● CSS: Change the background color of a form to blue.
● JavaScript: Automatically fill the "Date" field when a user selects a request
type.
🔹 Example:
Imagine an IT Support Form in ServiceNow:
● If a user selects "Laptop Issue", a new field for "Laptop Model" appears.
● If they select "Software Issue", the Laptop Model field disappears.
🏗️
3️⃣ Creating Custom Pages & Menus (Using Custom Pages &
Modules)
🔹 Example:
● An HR team wants a page to see employee leave requests. You can create a
custom HR dashboard.
● A company wants a "Training Module" where employees can track their training
progress.
●
- 27.
What is the difference between a workflow and an approval
workflow?
Let’s look at some key differences between a workflow and an approval workflow in
ServiceNow -
💡 All approval workflows are workflows, but not all workflows are approval
workflows!
Workflow is created using a visual tool Approval workflows are created using a
called Workflow editor, which lets us visual tool called the Approval Workflow
develop, design, and test workflows. editor.
Workflow automates repetitive or complex An approval workflow automates the
tasks. process of approving or rejecting request
changes.
● Step 1: Select the "Create New" option in the reporting module within the
ServiceNow platform.
● Step 2: Select the type of report you want to create, such as a table or map.
● Step 3: In this step, you can use a table, an external data source, or both to
select the data source of your report.
● Step 5: Use conditions and parameters to filter the data; this ensures that
the report only contains relevant data.
● Step 6: Choose the display format for the report to make it visually
appealing, such as a bar graph or a pie chart.
● Step 7: Save and run the report to look at the final result.
What does it Directly gets/changes data in Requests data from the server without
do? the database refreshing the page
📚 🍔
Real-Life A librarian searching for a book Ordering food and waiting for a
Example manually notification
Spee Slower (because it connects directly to the Faster (because it runs in the
d database) background)
When to For complex database When you just need to fetch some data
Use? queries quickly
Access control in ServiceNow works the same way! It decides who can see or
change information based on their role.
🔹 Example roles:
🏢
👩💼
● Admin → Can access everything
💻
● HR_Manager → Can see employee records
● IT_Support → Can view and fix IT issues
Now we decide what each role can see or change in the system.
For example:
✔ HR_Manager can see employee salaries but IT_Support cannot.
Just like some employees can’t access server rooms, some users shouldn’t run
certain scripts or actions.
Example:
javascript
CopyEdit
● if (!gs.hasRole("admin")) {
● gs.addErrorMessage("You do not have permission to
run this action.");
● return;
● }
●
What It Who can view, edit, or How forms behave (hiding fields,
Controls? delete data making fields mandatory)
Example Students can only see their If "Under 18," Parent’s Contact field
own grades appears
Domain Separation in ServiceNow is like giving each department or company its own
private space in a shared platform. They can work independently, without seeing or
accessing each other’s data.
33. What is a BSM map?
A BSM Map in ServiceNow is like a Google Map /flow chart for IT systems—it shows
how everything is connected and helps businesses fix issues quickly to avoid
service failures.
To run this app, many IT components work together, such as:
✔ Web servers (to load the website)
✔ Databases (to store user orders)
✔ Payment gateways (to process payments)
✔ Networks (to connect users to the service)
💡 Think of a reference field like a search bar. When selecting an employee, you
don’t want to see all users in the system—just the ones from a specific department. A
Reference Qualifier helps filter the list so you only see the relevant employees.
It ensures changes are carefully reviewed, approved, and implemented without disrupting business
operations.
This structured process helps businesses make IT changes smoothly and safely.
The Service Catalog is a self-service portal where users can request IT and business services, like:
● The Service Catalog is a self-service portal where users can request IT and business
services, such as password resets, new software installations, or hardware purchases. It
automates request approval and fulfillment. Explain it more clearly
●
● Password resets
● Software installations
● Hardware purchases
1. Request – Users select a service from the catalog (e.g., request a laptop).
2. Approval – The request is automatically sent for approval if needed.
3. Fulfillment – Once approved, IT or business teams complete the request.
4. Tracking – Users can check the status of their request in real-time.
5. Completion – The request is fulfilled, and records are updated.
The Service Catalog automates approvals and fulfillment, making service requests faster and more
efficient.
6. What is CMDB in ServiceNow?
A Workflow is a set of automated steps that ensure tasks are completed in a structured and
efficient way. Instead of doing things manually, a workflow in ServiceNow helps automate approvals,
notifications, and updates.
When a specific event occurs, the workflow automatically triggers the next steps, ensuring the
process flows smoothly.
●
A UI Policy in ServiceNow is a rule that automatically changes how form fields behave based on
user input. It helps make forms more user-friendly by showing, hiding, requiring, or locking fields
without needing any coding.
When a user fills out a form, a UI Policy checks the input and adjusts fields accordingly. This
makes the form easier to use and ensures correct data entry.
1. Make Fields Mandatory – Requires users to fill in specific fields before submitting the form.
○ Example: If Priority is set to "High," the Urgency field becomes mandatory to
ensure the issue is properly categorized.
2. Show or Hide Fields – Displays or removes fields based on user selection.
○ Example: If a user selects "Laptop Issue," the form shows a field for Laptop Serial
Number so the support team gets the necessary details.
3. Make Fields Read-Only – Prevents users from editing certain fields.
○ Example: If a request is approved, the "Requested By" field becomes read-only,
so no one can change it after approval.
A Script Include is a server-side script that contains reusable functions. This means you write a
function once and use it in multiple places instead of writing the same code repeatedly.
1. A Business Rule (to update the incident when it's closed).
2. A Workflow (to send an email notification about resolution time).
3. A Report (to show resolution times in a dashboard).
If the calculation formula changes, you must update the code in all three places—this is inefficient!
1. You create one Script Include with a function called calculateResolutionTime().
2. You call this function from the Business Rule, Workflow, and Report.
3. If you need to change the logic, you update it only in the Script Include, and all scripts
using it will work correctly.
In Simple Words:
A Script Include is a reusable function that helps developers avoid writing the same code in
multiple places. It makes coding faster, cleaner, and easier to manage in ServiceNow.
Example:
javascript
CopyEdit
MyScript.prototype = {
getHighPriorityIncidents: function() {
gr.addQuery('priority', '1');
gr.query();
return gr.getRowCount();
},
type: 'MyScript'
};
javascript
CopyEdit
Think of it like a robot that can search for records, change their
details, create new ones, or remove old ones—without needing you to do it
manually!
javascript
CopyEdit
}
✅ What this does: Finds all open incidents and displays their numbers.
javascript
CopyEdit
✅ What this does: Finds a specific incident and updates its priority.
Example 3: Create a New Incident
javascript
CopyEdit
✅ What this does: Creates a new incident with the description "Network
issue."
43. What is the difference between Client Script and Business Rule?
📌 What It Does:
● Runs in the user’s browser when they open, change, or submit a form.
● Helps control form behavior (hides fields, makes fields mandatory, autofills data, etc.).
● Improves user experience by making forms interactive.
📌 What It Does:
● Runs on the server when a record is inserted, updated, deleted, or queried.
● Used to automate data processing, such as assigning tickets, updating records, or
enforcing rules.
● Does not affect the form directly but ensures correct data is saved in the database.
✅ Example:
💡 Scenario: If an incident is created with High Priority, it should be automatically assigned
to the IT Support team.
javascript
CopyEdit
if (current.priority == '1') { // If Priority is "High" current.assignment_group = 'IT Support'; //
Assign to IT Support team }
When It Runs? When the user opens, edits, When a record is inserted,
or submits a form. updated, deleted, or queried in
the database.
Does it affect data in ❌ No, it only affects what the ✅ Yes, it updates data in the
the database? user sees on the form. database.
Impact on Can slow down the user's Runs on the server, so it doesn’t
Performance? browser if too many scripts run affect the user's experience.
at once.
Final Takeaways
✔ Client Script → Runs in the browser → Controls form behavior before submission.
✔ Business Rule → Runs on the server → Automates database actions after submission.
✔ Client Scripts = Better user experience, while Business Rules = Accurate database
processing.
Scheduled Jobs are useful for handling repetitive and time-based tasks, such as:
🛠️
✅
With a Scheduled Job (Automation ):
✅
A Scheduled Job is created to run automatically every 1st of the month.
✅
It finds and deletes incidents older than 6 months without human effort.
The database stays clean and efficient, with no manual work needed!
✅ Example:
A company uses Salesforce for customer management.
✅ Example:
A banking system needs to send alerts to ServiceNow when a suspicious transaction occurs.
● The banking system uses SOAP API to send the alert to ServiceNow.
● ServiceNow logs it as a security incident.
📌 Best for: Old enterprise systems that require structured data exchange.
✅ Example:
A company has an internal HR database with employee records.
✅ Example:
A company wants to send a Slack notification when a critical incident is created in ServiceNow.
● IntegrationHub automatically sends the Slack message without writing any code.
📌 Best for: Quick, no-code integrations with common apps.
✅ Example:
An HR team exports employee records from their HR system every week and uploads them to
ServiceNow as a CSV file.
📌 Best for: One-time or scheduled data transfers when real-time integration is not needed.
A Scoped Application is a separate, independent application inside ServiceNow. It has its own
data, rules, and scripts, which keeps it secure and isolated from other applications.
Each department needs its own application in ServiceNow. But HR should not see Finance data,
and Finance should not see HR data.
✅
A Scoped Application ensures that:
✅
The HR App cannot access finance data unless permission is given.
✅
The Finance App cannot modify employee records.
Each app works independently without interfering with others.
Create a Business Rule that checks the category and assigns the correct group.
javascript
CopyEdit
if (current.category == 'network') {
}
When an incident is created, you can make ServiceNow automatically assign
it to the correct group based on the category.
For example:
✅ If the category is "Network Issue", assign it to the Network Support
Team.
✅ If the category is "Email Issue", assign it to the Email Support Team.
✅ Steps:
1.Go to All → System Definition → Business Rules.
2.Click New and enter a name (e.g., "Assign Group Based on Category").
3.Select Incident as the table.
4.Set When to run as Before Insert or Update.
5.In the Script section, add a simple script like this:
javascript
CopyEdit
✅ Steps:
1.Go to All → System Policy → Rules → Assignment Rules.
2.Click New and enter a name (e.g., "Assign Group for Incidents").
3.Select Incident as the table.
4.In Conditions, set:
○ Category is "Network Issue" → Assign to "Network Support Team"
○ Category is "Email Issue" → Assign to "Email Support Team"
5.Click Save and activate it.
✅ Steps:
1.Go to All → Flow Designer.
2.Click New Flow and name it "Incident Auto-Assignment".
3.Add a Trigger: "When an incident is created or updated".
4.Add an Action: "Set Values" for the Assignment Group.
5.Use Conditions to check the category and assign the right group.
6.Click Save and activate the flow.
Role-Based Access Control (RBAC) is a security system in ServiceNow that controls who can
access what based on their role in the system.
✅
For example:
✅
A Support Agent can create and update incidents but cannot delete them.
✅
A Manager can approve change requests but cannot modify system settings.
An Admin has full system access.
In ServiceNow, a role is a set of permissions that determines what a user can do. Roles help
control access to modules, records, and actions in the system.
🔍
1. Log in to ServiceNow as an Admin.
2. Go to: All → User Administration → Roles.
3. Click New to create a new role.
Now, you need to define what this role can or cannot do. You do this by adding permissions to the
role.
✅ Example:
If you are creating an "incident_manager" role, you may add:
🔹 Name: it_support_agent
🔹 Description: "Handles IT support tickets, but cannot delete records."
Step 2: Assign Permissions to the Role
🔹 Summary 🎯
Step What to Do?
1️⃣ Create a Role Define a new role with a name and
description.
3️⃣ Assign the Role to Link the role to specific users who need it.
Users
1.
2. Open the API you created.
3. Scroll down to the Resources section and click New.
4. Define the endpoint:
a. Name: (e.g., "Get Incident by Number").
b. HTTP Method: Choose GET (used to retrieve data).
c. Relative Path: Enter "/{incident_number}" (this will take the incident
number from the request).
5. Click Submit.
Example:
javascript
CopyEdit
(function process(request, response) {
gr.addQuery('priority', '1');
gr.query();
while (gr.next()) {
result.push(gr.number);
response.setBody(result);
})(request, response);
Summary
4️⃣ Test the API Use REST API Explorer to check if it works.
Debugging helps identify and fix issues in scripts, workflows, and configurations. Below are
different methods to debug effectively.
✅ 1. Use Simple Scripts – Avoid heavy coding, fetch only needed data.
✅ 2. Keep Dashboards Light – Fewer widgets = Faster load time.
✅ 3. Reduce Business Rules – Too many slow down updates.
✅ 4. Archive Old Data – Move old records to keep the system fast.
✅ 5. Add Indexing – Helps in quick searching.
✅ 6. Use Scheduled Jobs – Run reports & updates at night.
✅ 7. Limit Emails – Send only important alerts.
✅ 8. Use Client-Side Processing – Faster forms with UI Policies.
✅ 9. Optimize API Calls – Fetch data in small chunks, not all at once.
✅ 10. Upgrade ServiceNow – Always update for better speed.
👉 Follow these steps, and your system will run faster! 🚀