Latest Interview Questions
Latest Interview Questions
1. What is ServiceNow?
ServiceNow is a California-based software company that provides a
cloud computing platform founded by Fred Luddy in 2003. It provides
services in various domains, including IT, human resources, security,
service delivery, customer service, and business applications.
ServiceNow Salesforce
It is a customer relationship
It is an IT service management
management platform that is used for
software that is used for automating
managing sales, marketing, customer
workflows in businesses.
support, etc.
Table Database
Tables store organized data into rows Databases manage the storage,
and columns. accessibility, and retrieval of data.
The users can access and modify the The data stored in the database is
restricted to authorized users and
Table Database
Tables are slow and inefficient if not Databases are fast and efficient as
optimized properly. they are designed to be highly
optimized.
Defining roles: The first step is creating roles to define access rights
for the users. ServiceNow has predefined roles, such as users and
administrators with specified access rights.
Defining Access: The access rights are defined for each role. We
can also define access rights for specific fields, such as who can
access the data and the ability to view, edit, or execute the data.
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
elements and perform simple records or manage emails and
operations. workflows.
Client scripts are less secure and are Server scripts are more secure and
vulnerable to various cyber-attacks. less prone to cyber-attacks.
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.
21. What are the best ways to secure data?
The best ways to ensure secure data in ServiceNow are as follows -
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.
22. How can we customize the ServiceNow user interface?
ServiceNow allows customization of the user interface to satisfy the
client's requirements. Let's look at the various ways to customize the
ServiceNow user interface -
Using CSS and JavaScript: We can use CSS to add custom styles
to the platform's pages. We can also use JavaScript to modify and
add additional features to the interface to make it look more
appealing.
Module Application
Workflow is created using a visual tool Approval workflows are created using
called Workflow editor, which lets us a visual tool called the Approval
develop, design, and test workflows. Workflow editor.
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.
29. What is the difference between a GlideRecord and a GlideAJAX
request?
Let’s look at some key differences between a GlideRecord and a
GlideAJAX request in ServiceNow -
Create a role with desired permissions that justify the user's role in
the organization. We can assign this role to a specific user or group.
ACLs control data access within the UI policies control the visibility of fields
platform, restrict access to confidential and values entered in the field and
ACL User Interface Policy
data and enforce regulation policies. enforce rules about data validation.
ACLs are created and managed by UI policies are created and managed
the platform's security console. by the platform's designer.
Both the Watch List and Work Notes List have been extensively
used in the ITSM process.
Watch List Work Notes List
Users added to the Work Notes List will receive email The Work Notes List feature is
updates when the ticket’s Work Notes field is updated available on Incidents.
and when the state changes (e.g., upon closure).
It is used for Collaborating with other fulfillers & It is used for Collaborating with other
Collaborating with users outside of ServiceNow. fulfillers & Collaborating with users
outside of ServiceNow.
It used for Collaborating with other fulfillers & It is used for Collaborating with other
Collaborating with users outside of ServiceNow fulfillers & Collaborating with users
outside of ServiceNow.
Related lists are a way to show relationships between one table and
another. For example, a user record can have relationships with
attachments, incidents, problems, CI, or many other types of tables.
So, all these associated records are listed in a related list and can
be displayed at the bottom of the form.
This method checks if a When you need to validate In some cases, you may require
user has a specific role whether a user has multiple strict role matching.
assigned to them. roles, hasRoles comes to the
rescue.
It’s perfect for scenarios This function allows you to This is where HasRoleExactly
where you want to verify if verify if a user holds any of shines It checks if a user has the
a user possesses a the specified roles. It’s handy exact set of roles provided,
particular role before when you want to grant ensuring that no additional roles
granting access to certain access based on a set of are present.
features or functionality. roles rather than a single one.
Use hasRole to perform Utilize hasRoles when Use hasRoleExactly when you
role-based checks for validating multiple roles. need precise role-based
individual roles authorization.
To grant the admin role to a user, you must also have the admin
role.
To grant the security_admin role to a user, you must also have
the security_admin role and must elevate to the security_admin
role before granting the security_admin role to other users
39.What are roles delegation?
Lets start with very first field you see in the screenshot above.
Updated – It is the latest(most recent) timestamp this incident
updated by anyone , a user or system anyone. It will change
according to update.
Updated By – It captures the user Id of account which updated
the record recently. It will change on every update according to
user.
Created – The date/time when the record was created in
database or in table. It Never change.
Created By – User Id of the account which created the record. It
never changes.
Opened – It is a timestamp when user starts the creation by
clicking Create New. So, it my be same or few second less than
Created.
Opened by -User Id of the account which opened the record. It
never changes.
Closed – The timestamp when the record is finally closed and
turned to inactive.
Closed By – User Id of the account which closed the record. It
never changes.
42.Could you please explain the Update Set process?
Answer :
2. Capture Changes:
Ensure the update set you created is current (meaning it's active and
selected).
Make changes you want to capture (e.g., create new fields, modify
forms, update scripts).
Each change is automatically added to the update set.
Once you've made all your changes, review your update set.
Go to System Update Sets > Local Update Sets and open your update
set.
Verify that all desired changes are included.
You can export the update set to an XML file for backup or to transfer it
manually.
Use System Update Sets > Local Update Sets to find your set, then
select Export to XML.
After importing, preview the update set to ensure it won't cause issues.
Resolve any conflicts that arise.
Once everything looks good, commit the update set to apply the
changes.
Answer :
Captures:
Form Layouts:
Modifications to the layout of forms.
Business Rules:
Scripts that run when records are displayed, inserted, updated, or
deleted.
Client Scripts:
JavaScript code executed in the user's browser.
UI Policies:
Rules to dynamically change form behavior and visibility.
Workflows:
Process definitions for handling tasks.
UI Actions:
Buttons and links added to forms and lists.
Report Definitions:
Configuration of reports.
Email Notifications:
Custom email templates and notifications.
Data Policies:
Rules for enforcing data integrity.
Doesn’t Capture:
Data:
Actual record data like incidents, users, etc. (use Data Imports for that).
Schedules:
Maintenance schedules and work schedules.
System Properties:
Some system properties might not be included.
Attachment:
Files attached to records.
Key Benefits:
Simplifies Management:
By grouping related update sets, you can manage them more easily
Previews Changes:
Allows you to preview all changes collectively before committing,
reducing the risk of errors
Efficient Deployment:
Helps streamline the deployment process by moving multiple changes at
once
Answer:
(Detailed Answer)
Simplifies Deployment:
By merging update sets, you can deploy a single, cohesive set of
changes rather than multiple individual ones.
Organizes Changes:
Helps in organizing and grouping related changes together, making it
easier to track and understand what’s included.
Reduces Errors:
Minimizes the risk of missing any updates during the deployment
process by ensuring all changes are captured in one place.
Efficient Management:
Makes it easier to back out or revert changes if needed, as they are all
consolidated into a single update set.
Answer :
Answer :
Capture Customizations:
Includes changes like scripts, UI policies, business rules, and form
layouts.
Track Changes:
Helps in tracking what has been modified and ensuring that those
modifications can be transferred.
Transport Mechanism:
Update sets can be exported from one instance and imported into
another.
Manage Deployments:
Ensures consistent deployment of customizations across multiple
environments.
Answer :
Return False
Answer :
current.setAbourtAction(true) or setAbourtAction(true)
(Simple Answer)
Scoped App and Global App are two different application models often
referenced in contexts such as ServiceNow (a cloud-based platform).
Scoped App:
Isolated, secure, modular, and designed for independent or distributed
applications, better suited for managed, isolated environments.
Global App:
Platform-wide, can access and modify all resources, generally more
flexible but riskier in terms of potential conflicts
(Detailed Answer)
1. Scoped App
Example:
A third-party HR management application in ServiceNow can be
developed as a scoped app, ensuring it doesn't interfere with other apps
like IT Service Management.
2. Global App
Answer :
Client side
Server Side
Client side:
Glide Form
Glide User
Glide Ajax
Glide Dialog Window
Glide List
Glide Menu
Server Side:
Glide Record
Glide System
Glide Date
Glide Date and Time
Glide Aggregate
Glide Element
Answer :
Yokohama
Answer :
Aspen - 2011
Berlin - 2012
Calgary - 2013
Dublin - 2013
Eureka - 2014
Fuji - 2015
Geneva - 2015
Helsinki - 2016
Istanbul - 2017
Jakarta - 2017
Kingston - 2018
London - 2018
Madrid - 2019
New York - 2019
Orlando - 2020
Paris - 2020
Quebec - 2021
Rome - 2021
San Diego - 2022
Tokyo - 2022
Utah - 2023
Vancouver - 2023
Washington - 2024
Xanadu - 2024
Yokohama - 2025 (Expected)
Zurich - 2025(Expected)
Answer :
AutoSysFields(false)
Answer :
setWorkFlow(false)
Answer:
Update sets
Answer :
Answer:
Answer :
allows you to modify the properties of a field in a child table without
altering the original definition of the field in the parent table
(if any alternates for the child table ,No Impact For Parent Table )
next() method moves the record to the next in GlideRecord. _next() has
the same functionality as next(), but it is used in cases when a tale
having column name ‘next’ is queried.
ACL or Access Control List is a rule that matches the object and
permissions required to access the object.
In above image can see the attribute is true for CI Relationship Type
table. It means if you make change to any record of CI Relationship
Type table it get captured in update set.
In above image can see the attribute is not present for incident
table. It means if you make changes to any record of Incident table
it will not get captured in update set.
66.What is update_synch attribute?
Answer :
Key Points:
User Experience Will only show the Will show all pages Query BR is only
records the User with the restricted evaluated once per each
can see, with no records being table query. They just
message at the “invisible” and a return the resulting records
bottom about message at the from DB to the application.
“some records bottom “some
removed due to records removed
security”. E.g. if due to security”.
there are 500 E.g. it will show 10
Incidents but the pages of records,
User can only see but the user will
10, it will show one only see 1 record
page with only 10 on each page – the
records. rest will be empty
rows.
Performance Query BR can ACLs have to be Query BR will be shown in
provide a evaluated for every the “Debug Business
performance boost record/field Rules” module, but you
in some cases, individually. can only see that a
compared to ACL. particular BR has run, with
no info on whether it
actually restricted any
records.
Debugging You cannot debug ACLs can be easily Query BR will impact all
Query BR using the debugged with your scripts running on the
“Debug Security” “debug security” table where the BR is
module. applied. E.g. if you have a
script doing a GlideRecord
on Incident table, it will be
affected by Query BR
according to the
restrictions put in it.
Impact on Scripts ACLs are not Query BR can You cannot add roles to
impacting the make script ACLs from a different
scripts.Exceptions debugging rerd scope.You cannot use
include: using sometimes. script evaluation in ACL
GlideRecordSecure wiwhichs for a table in a
or adding different scope.You cannot
“canRead/canWrite” create wildcard (*) rules for
etc. to your tables in a different scope.
GlideRecord in
scripts.
Scoped You cannot create In some cases, it
Applications Query BR on tables was impossible to
from a different properly test or
scope within a debug Query BR by
scoped app. impersonating a
user. We acd to log
in as that user to
see the real effect*
User Query BR can No known issues *I have not been able to
Impersonation impact the proper related to reproduce this now, but
inserting or impersonation. our testers reported this
updating of records issue on several
via Update Sets – occasions. Keep this in
e.g. if on a target mind just in case.
instance, you don’t
have access to a
specific record due
to Query BR and try
to update it via an
Update Set, it won’t
happen.
Update Sets Under normal No adverse impact Under normal
circumstances, you on Update Sets. circumstances, you will
will probably not be probably not be affected
affected by this by this behaviour. Things
behaviour. Things get interesting when you
get interesting start restricting
when you start configuration files.
restricting
configuration files.
69.Read ,write, delete, create which one executes first ?
Answer :
Table-Level Read:
Checks if the user can read the table.
Record-Level Read:
Checks if the user can read the specific record.
Field-Level Read:
Checks if the user can read individual fields within the record.
Table-Level Write:
Checks if the user can write to the table.
Record-Level Write:
Checks if the user can write to the specific record.
Field-Level Write:
Checks if the user can write to individual fields within the record.
Table-Level Delete:
Checks if the user can delete records from the table.
Record-Level Delete:
Checks if the user can delete the specific record
70.Difference between -none-,*,table.active in ACL?
An ACL, also known as an Access Control List, specifies
the object and operation being secured.
ACLs can be broadly classified as table-level and field-level
ACLs.
Table Level:-
Here is an example of a table-level ACL. Here, the delete operation
is secured for table Incident. Since no column is specified, which
indicates that the delete operation is secured for the entire table.
Field-level ACL:-
A field-level ACL is an ACL that applies to a specific field. Here is
an example of a field-level ACL. In this case, the read ACL is
defined for the field short description.
Field level .*.
If the ACL is table.*, which indicates it applies to a specific table and
all its fields, In the following example, it is Incident.*, which specifies
it is for the incident table and applies to all of its fields.
Table.active:
Definition The actual data stored in the field The human-readable represe
data
Purpose Used for data processing and Used for user interaction and
calculations
preferences
Dynamism May change dynamically based on Reflects the most current stat
updates underlying data
Importance Critical for data integrity and Critical for user experience an
processing understanding
Answer :
Simple
Dynamic
Advanced
Simple:
Dynamic:
Advanced:
sc_request (Request)
sc_req_item (Requested Item)
sc_task (Catalog task)
The relationship between these tables makes order management
from the ServiceNow catalogue easy, organized, and manageable.
Requests, RITMs (Requested Items), and Tasks are related in the
context of a Service Catalog or IT Service Management (ITSM).
They represent different stages or components of fulfilling a service
request.
You can create a record producer for tables and database views
that are in the same scope as the record producer. Also for tables
that allow create access from applications in other scopes.
1. Navigate to All > Service Catalog > Catalog Definition > Record
Producers.
2. Click New or select the record producer to edit.
3. Complete the Record Producer form.
4. To add attachments such as information and instruction
documentation to the catalog item, see Add an attachment .
5. Click Submit.After you submit the form, the Variables, Variable
Sets, Categories, and Catalogs related lists become available.
6. Open the record again to define variables for the record producer.
80.What is Record Producer Script?
Answer :
Record Producer:
Purpose:
Creates records in any ServiceNow table.
Forms:
Custom forms to gather data for creating records.
Use Case:
Used for tasks like reporting issues, requesting changes, or logging
service requests.
Example:
Creating an incident or change request.
Order Guide:
Purpose:
Facilitates ordering multiple related items as a single request.
Forms:
Guides users through a sequence of questions to determine their needs.
Use Case:
Used for complex orders involving multiple items or services.
Example:
Onboarding a new employee, which may involve requesting hardware,
software, and access to various systems.
83.Difference between Catalog Item and Record Producer?
Answer :
Catalog Item:
Purpose:
Allows users to request products or services.
Forms:
Customizable forms to capture user input.
Fulfilment:
Triggers workflows to fulfil the request.
Use Case:
Ordering hardware, software, or other services.
Record Producer:
Forms:
Custom forms to capture user input for creating records.
Flexibility:
Can create incident records, change requests, etc.
Use Case:
Reporting issues, requesting changes, etc.
84.Types of variables in service catalog in ServiceNow?
Answer :
User Criteria in ServiceNow define who can see or access certain parts
of the Service Catalog. They determine the visibility of catalog items,
categories, and variables based on user attributes like roles,
departments, locations, and more.
Importance:
Access Control:
Ensures that only authorized users can access specific items or
services.
Tailored Experience:
Customizes the user experience by showing relevant catalog items
based on user attributes.
Security:
Enhances security by restricting sensitive items to appropriate users.
Efficiency:
Improves efficiency by reducing clutter and showing only relevant
options to users.
Used in Service catalog, Knowledge article etc....
86.What is a Variable Set, and what is Its purpose?
Answer :
Purpose:
Efficiency:
Saves time by allowing you to create a set of variables once and apply
them to multiple catalog items.
Consistency:
Ensures the same variables are used uniformly across different items,
reducing the risk of errors.
Maintenance:
Simplifies updates and changes, as you only need to modify the variable
set rather than each individual catalog item.
Answer :
Purpose:
Dynamic Forms:
Automatically adjust form fields based on user inputs or other conditions.
Enhanced User Experience:
Simplifies the form-filling process by showing or hiding relevant fields.
Data Integrity:
Ensures that necessary data is collected and irrelevant data is hidden.
Automation:
Reduces the need for manual intervention by automating form behavior.
Catalog UI Policies help tailor the user experience, ensuring forms are
more intuitive and user-friendly.
88.What Is a Order Guide, and what Is Its use?
Answer :
Purpose:
Simplified Ordering:
Let’s users request several items in a single, consolidated process.
Consistency:
Ensures related items are ordered together, reducing errors.
Guided Experience:
Walks users through a sequence of questions to determine their needs.
Automation:
Automatically generates the necessary tasks for fulfilment.
89.What Is a Record Producer, and what Is its purpose?
Answer :
Purpose:
Ease of Use:
Simplifies the record creation process for end users.
Consistency:
Ensures data is collected in a standardized manner.
Automation:
Can trigger workflows and business rules based on the data entered.
Customization:
Allows for custom forms tailored to specific needs.
90.What is service catelog in service now?
Key Features:
Self-Service:
Empowers users to request services on their own, reducing the need for
manual intervention
Faster Fulfilment:
Streamlines the request process, ensuring quicker service delivery
Automation:
Automates workflows to handle requests efficiently
Visibility:
Provides insights into order volume, velocity, and automation levels
Consistency:
Ensures standardized request fulfilment processes
91.Why do we put service catalogs into self-service?
Answer: I would define a Catalog Item in the Service Catalog and attach
a Workflow that includes the necessary fulfillment tasks. Each task
would be assigned to the appropriate team, ensuring that the request is
fulfilled in a structured manner.
Scenario: "A new hire needs access to several IT services. How would
you set up the service catalog to facilitate this?"
Answer: I would create a Service Catalog Request item or a Record
Producer that triggers requests for all necessary IT services as part of
an onboarding package. This could include requests for hardware,
software, and system access.
93. How will you generate reports on incident form with duration.
Click on the "Reports" module or navigate to the "Reports" section.
Create a new report by selecting the "New" or "Create Report" option.
Choose the "Tabular" or "List" report type.
Configure the report by selecting the desired columns to display, such as
"Incident Number," "Opened," and "Closed."
Add a calculated column by selecting the option to create a new formula
or calculated field.
In the formula editor, create a formula to calculate the duration by
subtracting the "Opened" time from the "Closed" time. For example, the
formula may be: ${closed} - ${opened}.
Specify the desired formatting for the duration column, such as
displaying it in hours or days.
Apply any additional filters or sorting options to the report if necessary.
Save the report and provide it with an appropriate name.
Run the report to view the duration of incidents, which will be displayed
in the calculated column you created
Yes, by:
Share via Link: Share the report URL with users who have
access.
Add to Dashboards: Embed the report in a dashboard.
Schedule Reports: Use the scheduling feature to distribute
reports automatically.
Publish to Knowledge Base: Export the report and publish it as
an article in the Knowledge Base.
Automated Indicator:
o Data is collected automatically at scheduled intervals.
o Example: Tracking the daily number of open incidents.
Manual Indicator:
o Requires users to input data manually.
o Example: Logging customer satisfaction scores manually
after surveys.
Answer :
Key Components:
Activities:
Actions taken in the workflow, such as creating tasks, sending
notifications, or making decisions.
Conditions:
Criteria that determine the path the workflow will take, based on specific
conditions being met.
Transitions:
Connect activities and conditions, defining the flow from one step to the
next.
Importance of Workflows:
Efficiency:
Automates repetitive tasks, reducing manual effort and increasing
productivity.
Consistency:
Ensures that processes are followed consistently, reducing the chance
of errors.
Transparency:
Provides visibility into the process, allowing stakeholders to track
progress and identify bottlenecks.
Compliance:
Helps enforce compliance with organizational policies and procedures
by embedding them into the workflow.
Scalability:
Allows for scalable processes that can grow with the organization,
accommodating more complex tasks as needed. Workflows play a
crucial role in streamlining operations, improving collaboration, and
enhancing overall efficiency in business processes.
119.What Is a push notification In ServiceNow?
Real-Time Alerts:
Users receive immediate notifications about important events, such as
the assignment of an incident or a change request.
Actionable Messages:
Notifications can include options for users to respond directly from their
mobile device, such as approving or denying a request.
Customization:
You can customize the content, timing, and conditions under which push
notifications are sent.
Answer :
$(mail_script:mail_script_name)
Answer :
If several notifications are configured for the same event and recipient,
the weight field helps determine which notification to send. Only the
notification with the highest weight value is sent
Weight Values:
Example:
If you have two notifications for the same event, one with a weight of 10
and another with a weight of 50, only the notification with the weight of
50 will be sent to the recipient.
122.How many ways notifications can be triggered ?
Answer :
Record Insert/Update/Delete:
Notifications can be triggered when a record is created, updated, or
deleted.
Scripted Notifications:
Using business rules or scripts to trigger notifications based on specific
conditions.
Scheduled Notifications:
Sending notifications based on a scheduled job or a time-based
condition.
Events:
Notifications can be tied to events, which are generated by other scripts
or workflows
123.What is a notifications and why is it used?
Answer :
Purpose of Notifications:
Alert Users:
Inform users about events like incident assignments, approvals, or task
updates.
Enhance Communication:
Improve communication by keeping users informed about system
activities and their responsibilities.
Timely Updates:
Provide timely updates to ensure users are aware of critical changes or
actions required.
Automation:
Automate communication processes, reducing the need for manual
follow-ups
124.What is SLM or (SLA) can you Briefly Explain, Types Of SLA s ?
Answer :
Types :
SLA : Service Level Agreement
Answer :
Response Time :
The time it takes for a service provider to acknowledge and respond to a
customer’s request or issue after it has been reported.
Resolution Time
The total time taken to resolve the customer’s issue from the moment it
was reported until it is fully resolved.
Answer:
8/5 (8 Hrs ,5 days/week)
Answer:
SLA
SLAs are agreements with defined targets and conditions,
SLAs are used to manage service delivery and ensure customer
satisfaction
Metric
metrics are ongoing measurements without specific targets.
metrics are used to analyze performance and drive improvements
Answer:
Start condition
Pause condition
Stop condition
Reset condition
Flows
A flow error handler enables a flow to catch and report errors from
the flow execution details. Run a sequence of actions and subflows
to identify and correct issues. For example, have flows log output
values, send notifications, and run corrective subflows when they
produce an error.
Subflows
Actions
Spokes
Pauses Workflow: The Timer activity stops the workflow for a set
duration.
Absolute Time: You can specify an exact time period (e.g., 1 hour, 30
minutes).
Relative Time: You can base the duration on a relative value, such as a
percentage of an SLA (Service Level Agreement).
134.What is a scheduled workflow in ServiceNow?
Flow Designer:
Modern Tool: The newer, more advanced tool for creating workflows.
Answer :
To cancel a workflow in ServiceNow, you can use the "cancelContext"
Answer :
Send Notification activity into your workflows, you can automate the
process of sending email notifications based on specific conditions and
triggers, ensuring timely communication and updates.
Answer :
Key Features:
Reusable Components: Build flows using pre-built actions and sub flows.
Answer :
Automation:
Streamlines repetitive tasks, reducing manual effort.
Consistency:
Ensures processes are carried out uniformly.
Efficiency:
Speeds up task completion and reduces delays.
Visibility:
Provides clear visibility into the progress and status of tasks.
Error Reduction:
Minimizes human errors by automating steps.
Scalability:
Easily adapts to growing business needs and changing processes.
Integration:
Seamlessly integrates with other ServiceNow modules and third-party
systems.
Complexity:
Can be complex to design and maintain, especially for large-scale
processes.
Initial Setup:
Requires significant initial setup and configuration.
Dependency:
May create dependencies on automated processes, making manual
interventions challenging.
Flexibility:
May lack flexibility in handling unique or ad-hoc scenarios.
Resource Intensive:
Designing and maintaining workflows can be resource-intensive in terms
of time and expertise required.
143.Tell me some Core Activities In workflow?
Core Activities:
Approval:
Approval - User: Requests approval from a specific user.
Approval - Group: Requests approval from a specific group.
Task:
Create Task: Creates a task in the specified table.
Create Incident: Creates an incident record.
Notification:
Send Notification: Sends an email notification to specified recipients.
Generate Events: Triggers an event to notify other parts of the system.
Condition:
Wait for Condition: Pauses the workflow until a specified condition is
met.
If / Else: Branches the workflow based on a condition.
Utility:
Script: Runs a custom script.
Log Message: Logs a message to the system log.
Timer:
Timer: Pauses the workflow for a specified duration.
Schedule: Pauses the workflow until a specific date and time.
Answer :
Key Points:
Data Integrity: Ensures that all data remains accurate and consistent by
reverting to a previous state if necessary.
Answer:
Answer :
To pass data from a main workflow to a sub-workflow in ServiceNow,
you can use workflow scratchpad variables.
147.What is Turnstile Activity ?
Onward answer :
Detailed Answer :
Key Points:
Limit Iterations: Sets a limit on the number of times the workflow can
pass through the activity.
Example:
You can use the Turnstile Activity to ensure that a workflow doesn't
repeatedly check the same condition without progressing.
148.What is Coordinating Approval Activity ?
Key Points:
Parallel Processing: All approvals can be done at the same time, which
saves time.
Example:
Use it in a workflow where you need approvals from different
departments before deploying new software.
149.What is a Workflow, and what is its importance ?
Answer :
Key Components:
Activities:
Actions taken in the workflow, such as creating tasks, sending
notifications, or making decisions.
Conditions:
Criteria that determine the path the workflow will take, based on specific
conditions being met.
Transitions:
Connect activities and conditions, defining the flow from one step to the
next.
Importance of Workflows:
Efficiency:
Automates repetitive tasks, reducing manual effort and increasing
productivity.
Consistency:
Ensures that processes are followed consistently, reducing the chance
of errors.
Transparency:
Provides visibility into the process, allowing stakeholders to track
progress and identify bottlenecks.
Compliance:
Helps enforce compliance with organizational policies and procedures
by embedding them into the workflow.
Scalability:
Allows for scalable processes that can grow with the organization,
accommodating more complex tasks as needed. Workflows play a
crucial role in streamlining operations, improving collaboration, and
enhancing overall efficiency in business processes.
150.What are the benefits of flow designer?
Ans: 1. Provides a list of reusable flow components in the base
system and helps reduce development cost.
2. Reduces upgrade costs, with upgrade-safe platform logic,
replacing complex custom scripts.
3. Develop, share, and reuse your custom flow components with
other flow designers.
4. Integrate with external instances and third-party applications
with the use of IntegrationHub.
5. You do not have to script. Natural language descriptions are
used to help non-technical users to understand triggers, actions,
inputs and outputs.
6. Combines multiple platform automation capabilities,
configuration, and runtime information so process owners and
developers can create, operate, and troubleshoot flows from a
single interface.
151.When to use Flow Designer vs Workflow?
Ans : Workflow can be used in following cases:
1. If the process requires complicated or scripted logic, it can be
written in a Workflow.
2. Changing logic already developed using Workflows.
3. SLA timer is required.
4. Steps required do not exist yet in Flow Designer and require
unsupported protocols.
Use Flow Designer when:
1. Process owners need to use natural language and low code
way to automate approvals, task, notifications and record
operations.
2. New logic needs to be developed and it has not been created in
workflow.
3. Business logic needs to use the library of reusable actions
across multiple flows.
152.What are the key differences between Flow Designer and
Workflow in ServiceNow, and in which scenarios is it more
advantageous to use one over the other?
Ans :
When to Use Flow Designer:
* When you need to integrate with external systems (via
IntegrationHub).
* For modern, dynamic processes that require flexibility, such as
employee onboarding, service catalog requests, or complex
approval workflows.
* When a low-code solution is preferred for ease of use and
maintenance.
When to Use Workflow:
* For legacy systems where existing workflows are already
established.
* When the process is straightforward and doesn't require frequent
updates or integrations.
* In scenarios where scripting and deep customization are
necessary and already available in the system.
153. Tell me 5 basic difference between workflow and flow designer
Flow Designer is the newer flow tool offered by ServiceNow. The
major advantage is it is more low code enabling end users to
create and maintain a flow. Flow Designer supports Spokes to
enable OOTB features to be used in flows. Flows can be broken
up into sub-flows with sub-flows maintained by other teams. That
is, each flow is usually much shorter than those written in
workflow.
Flow Designer enables users to use natural language to automate
tasks, record operations, notifications, and approvals without
having to write it in code. It enables various process automation
capabilities in a consolidated design environment.
On the other hand, workflow is the tried-and-true method that
requires a more advanced developer but allows for more complex
scenarios, including plenty of readily accessible scripting blocks.
(These examples may not provide exactly five differences, but they
serve as illustrations to convey the concept.)
Basic Questions
Intermediate Questions
Advanced Questions
164.What are MID Servers, and how do they work with ITSM?
Answer:
MID (Management, Instrumentation, and Discovery) Servers are used
for communication between ServiceNow and external systems in a
secure manner. They enable:
Scenario-Based Questions
o Check the SLA Definition for correct start, stop, and pause
conditions.
o Review the incident's activity log to identify delays.
o Verify if the SLA timer paused for valid reasons (e.g.,
awaiting user input).
o Adjust configurations if necessary and inform the user.
Incident Management
It is the set of applications and features that aims to deliver the best
IT Services to users and customers by focusing on scalable
workflow automation and streamlining organizational IT processes.
Introduction to AL will make this solution more reliable, fast, and
professional.
Gain visibility into processes & services :It also help in making
this more agile than ever. Process owners are now have more
control over services and its performance. They can easily
monitor the performance and get complete visibility within /out of
processes.
Smarter decisions can be made easily by looking into the analytics
part of applications etc.
if(action=='insert'){
ignore=true;
}
177.What are the different variables available in transform map
scripts?
1. source: Contains the import source record currently being
transformed. Specify a specific field from the source record as an
object property.
3. log : Log information about the current import process. Each log
level has it\'s own method.
5. error : When set to true, aborts the current import action and
logs an error message in the Import Set Log.
You can write down onBefore transform map script where your one of
the code line would be
if(source.u_fieldNameThatIsToBeCheckedForNull != '')
{
ignore = true;
}
179.Also, say i want to skip a particular field only and update the rest
what would be the best way to achieve it.
I'm not sure I quite understand what you are after here. If you want to
skip a field just don't include it in the field map or transform scripts. If you
want to conditionally skip a field then, as Berny mentioned, you can use
a transform script to conditionally set target fields based on the source
field value. You don't put the source/target fields in the field map list but
instead use a Before transform script (or the script on the main transform
map form) to set the target field
180.Although a field is coalesced, we are seeing multiple entries being
created in the target table. Is not supposed to just update instead of
creating new rows in the table.
If the ID field is truly the only field with Coalesce checked then
something else is causing the duplicates. In your instance I know you
have tenant separation so there could be tenant-separation query
business rules that are preventing the transform process from finding the
record with the matching ID.
UI actions in ServiceNow can run on server side and client side both,
mostly requirement is of to run UI action on server side. You can add UI
actions to tables and database views that are in the same scope.
Login as Admin
Navigate to System Definition – Click on UI Actions option
Click on New Button
Create UI Action: On the extended table with the same Action Name.
Add Specific Script: Write script specific to the extended table.
Match Action Name: Ensure the Action Name matches.
Remove UI Action (Optional): Add conditions to exclude the extended
table
Activate to view larger image,
208.What is UI Policies?
212.If a client script makes the Assignment Group field read-only and a
UI policy makes it editable, what will be the output?
213.Explain one of the UI Policies you have created. Why use UI Policy,
not Client Script or ACL?
214.Explain any scenario that can be achieved by UI Policy but not with
Client Script or vice versa.
Ui Policy :
Data Policy :
Data Policy Runs Server Side, A Data Policy in ServiceNow is designed
to enforce data consistency and integrity across the platform.
Data Policies ensure that data entered into the system meets specific
criteria, such as making fields mandatory or read-only
Data Policies apply to all data entry points, including import sets, web
services, and mobile UI.
Well if your requirement say you have to write a client script, you
have to do it.
If you have a similar requirement but the work notes field should be
mandatory on form Submission then you have to use here onSubmit
Client script because in UI Policy you can either set it on field
change or form load ( only in these two scenario you can run the UI
Policy ).
Client scripts in ServiceNow are JavaScript code that runs on the client
side (i.e., in the user’s web browser) when certain events occur on a
form or list. They are used to manage and manipulate form fields,
validate data, and provide a more dynamic user experience.
Validate data :
Ensure that the data entered by users meets certain criteria before
submission.
onLoad :
Runs when a form is first loaded. Typically used to manipulate the form
or set default values.
onChange :
Runs when a particular field value changes. Useful for dynamically
updating other fields based on user input.
onSubmit :
Runs when a form is submitted. Often used to validate form data and
prevent submission if certain conditions are not met.
onCellEdit :
Runs when a cell value is edited in a list. Used to validate or manipulate
data directly in list views.
223.What is the use of Global Check Box in client script ?
Checked (Global) :
When the Global checkbox is checked, the client script will execute for
all views of the specified table. This is the default setting and ensures
that the script applies universally across different views.
Unchecked :
If you uncheck the Global checkbox, a new field called View becomes
visible. You can specify a particular view in this field, meaning the client
script will only run when that specific view is loaded
224.What is the use of Inherit In client script
In ServiceNow, the Inherit checkbox in client scripts allows the script to
be inherited by tables that extend from the table on which the script is
defined. This means that if you create a client script on a parent table,
such as the Task table, it can be automatically applied to all child tables
that extend from it, like Incident, Change, and Problem tables
script output
script related other information
error messages( if any)
233.How do you check background script history in ServiceNow?
Any script that runs all its execution history gets stored in
the Script Execution Histories table.
The table’s full name is sys_script_execution_history
It has all the basic details such as who executes it, start and finish
time, transaction ID, script, result and result metadata.
234.How to stop the background script in ServiceNow?
Fix script is the best approach when you install a new application or
want some data fixes to be running after making some changes in
prod. The best feature of a fix script is you can monitor its execution
and check the progress and you can kill the transaction as well.
Simple Answer
Activate to view larger image,
In After BR, try to rethink using current. update() as this can cause
Before BR to run again. To avoid this, change your After BR to
Before BR so you won’t need to use current. update.
257.current. update() in Async Business Rule?
Async BR executes after data is modified in the database, so its
solution is similar to After BR.
258.current. update() in Display Business Rule?
Display BR runs when the record is first displayed on the screen.
So, it is not a good practice to update a record when it is just
accessed. Alternatively, use client scripts in those cases.
259.When to use current. update()?
So, friends, this is all about the usage of current. update(). You can
make your changes and try to avoid using the function.
260.How to restrict user from submitting form without attachment.
function onSubmit() {
var ga = new GlideAjax('GetUsersDetails'); // GetUsersDetails is
the script include class
ga.addParam('sysparm_name', 'getManager'); // getManager is
the script include method
ga.addParam('sysparm_user_name',
g_form.getValue('caller_id')); // Set parameter sysparm_user_name
to caller
ga.getXML(GetDetails);
// the callback function for returning the result from the server-
side code
function GetDetails(response) {
var answer =
response.responseXML.documentElement.getAttribute("answer");
alert(answer);
}
}
// Script Include Code
function onSubmit() {
var ga = new GlideAjax('GetUsersDetails'); // GetUsersDetails is
the script include class
ga.addParam('sysparm_name', 'getManager'); // getManager is
the script include method
ga.addParam('sysparm_user_name',
g_form.getValue('caller_id')); // Set parameter sysparm_user_name
to caller
ga.getXMLWait();
alert(ga.getAnswer()); // No need for a callback function
}
// Script Include Code
var GetUsersDetails = Class.create();
GetUsersDetails.prototype =
Object.extendsObject(AbstractAjaxProcessor, {
getManager: function() {
var userName = this.getParameter("sysparm_user_name");
var grUser = new GlideRecord('sys_user');
grUser.addQuery('sys_id', userName);
grUser.query();
if (grUser.next())
return grUser.manager.getDisplayValue();
},
type: 'GetUsersDetails'
});
I hope these examples will help you in learning GlideAjax easily and
intuitively.
The script includes are used to store JavaScript that runs on the
server. It is a kind of on-demand code repository, that executes only
when invoked or called from other script utilities of ServiceNow,
such as Business rule, client script, etc.
The private privacy setting means that guests who access public
pages cannot access the client-callable script-include. A private
script cannot be executed by a non-logged-in user.
Client Script
Business Rule
Reference Qualifier
Default value
Workflow
Any utility on the Client’s Side
Any utility on the Server Side
INTEGRATION QUESTIONS
281.Difference Between REST AND SOAP In ServiceNow ?
282.What is an inbound web service?
In the above diagram, ServiceNow acts as the consumer, and 3rd party
applications act as Service Provider.
Example
We are using the same example but this time perspective and need to
integrate shifts from Tanium to ServiceNow where ServiceNow wants to
send data to the Tanium console.
Note that these are general differences and not all inbound or
outbound web services will adhere to all of these characteristics.
286.Precautions while using Inbound & Outbound Web Services?
Use the provided code samples to send this request from commonly
used languages.
//Request
var request = new sn_ws.RESTMessageV2();
request.setEndpoint('https://dev95794.service-
now.com/api/sn_sc/servicecatalog/items/186d917a6fab7980575967
ddbb3ee4f2/order_now');
request.setHttpMethod('POST');
// Authentication
var user = 'admin';
var password = 'your password';
request.setBasicAuth(user,password);
request.setRequestHeader("Accept","application/json");
request.setRequestHeader('Content-Type','application/json');
request.setRequestBody("{'sysparm_id':
'186d917a6fab7980575967ddbb3ee4f2','sysparm_quantity':
'1','variables':{'new_email': '[email protected]'}}");
//Response
var response = request.execute();
gs.print("body - "+response.getBody());
289.What is SOAP(Simple Object Access Protocol)?
SOAP messages are typically transmitted over REST uses HTTP as its primary p
HTTP, SMTP, or other Internet protocols.
SOAP relies on XML as its message format. REST uses simple data formats su
JSON or XML.
SOAP-based web services have a well-defined RESTful web services do not have
contract or interface that is described using contract or interface, but rely on a
WSDL (Web Services Description interface instead.
Language).
SOAP-based web services can use different RESTful web services typically on
protocols such as HTTP, SMTP, or JMS. HTTP.
SOAP-based web services are generally slower RESTful web services are genera
and more resource-intensive than RESTful web and more lightweight than SOAP-b
services. web services.
Performance SOAP can be slower and more REST is generally faster and
resource-intensive than REST lightweight than SOAP due to
because of its complex message simpler message format and
format and additional processing interface.
required.
Documentation RESTful APIs can be easier to RESTful APIs can be more fle
test using tools such as Postman easier to understand, but they
or Curl, which allow developers to clear and detailed documenta
send HTTP requests and view the ensure that clients can use th
responses. effectively.
SIMILARITIES SOA
Both are used to build web services that allow communication between Yes
different systems and platforms.
SIMILARITIES SOA
Both can use XML as a message format for exchanging data. Yes
Both require proper error handling and status codes to provide meaningful Yes
responses to clients.
Host: example.com
Content-Type: application/json
"price": 19.99,
Use Case Updating a resource that requires the entire Updating a resource
representation to be provided partial information
Use-Case Best for common, standard operations like CRUD Best for
(Create, Read, Update, Delete) on ServiceNow tables. can’t be
Version Control Platform upgrades include handling version updates, The dev
which are under the control of ServiceNow. managin
Endpoint URL Standardized URL format typically using a table API A custom
(e.g., /api/now/table/{tableName}). (e.g., /ap
Method Standard HTTP methods (GET, POST, PUT, DELETE, Can def
Support etc.) are supported based on the table’s access etc.) to b
controls.
although
Message Format Uses XML to structure data Uses JSON for lighter Use
and easier-to-read data syn
structure
header
1.
Delivery Phase:
1. Technical Design
2. Development
3. Testing
4. Error Handling and Logging
5. Performance Optimization
Hypercare Phase :
To provide the support post deployment if everything is working fine as
per configuration or not.
Challenges:
1. Data Consistency: Ensuring data consistency between systems
can be challenging, especially when dealing with large volumes of
data and complex data models.
2. Security and Compliance: Integrations may raise security and
compliance concerns, particularly when sensitive data is involved.
Ensuring proper authorization and encryption mechanisms is
crucial.
3. Scalability: The integration should be designed to handle
increasing volumes of data over time. Scalability becomes
essential to accommodate business growth.
4. Monitoring and Maintenance: Ongoing monitoring is necessary
to identify and address any issues that arise post-deployment.
5. Vendor Support and Documentation: Dependence on the
availability of APIs and the quality of documentation provided by
the 3rd party product can impact the ease of integration.
6. User Adoption and Training: If the integrated solution introduces
new workflows or processes, training and change management
efforts might be required to ensure user adoption.
Remember that each integration project is unique, and the specifics can
vary based on the systems involved and the requirements of the project.
Therefore, adapt the approach and considerations to suit the particular
context with respect to your integration.
REST API is also known as RESTful web services that follow the REST
architecture.
Client-server decoupling
Communication support
Lightweight
Uniform interface
Stateless
Layered system
Cacheable
Code on demand
REST services are scalable due to the statelessness that they do not
store data on the server even though they are requested and do not
require much communication.
Idempotent methods are known to return the same outcome even after
the same request has been made multiple times, and it avoids errors
caused by duplicate requests on the client side.
The RESTful web services can be tested with the help of tools such as
Swagger and Postman, which enable users to inspect query parameters,
response headers, and headers, documentation of the endpoints, and
conversion of endpoints to XML and JSON.
Payloads are the request data passed through the POST or GET
method and found in the message’s body of an HTTP request in
RESTful web services.
315. What is the maximum payload size that can be sent in POST
methods?
Theoretically, there is no such maximum limit for payload size that can
be sent in POST methods. However, payloads with larger sizes can
consume larger bandwidth. Thus the server could take more time to
proceed with the request.
316. Which protocol does REST APIs use?
Protocols are used to communicate with clients where REST APIs use
HTTP protocol for it.
The resources in REST APIs are represented with the help of XML
(extensible markup language) and JSON (JavaScript Object Notation).
POST Method
The main parts of the HTTP response are the HTTP version, Status line,
HTTP Response Header, and HTTP Response body.
322. What are the most common HTTP response status codes you
see while working in REST API?
Some of the most common response status codes are 200 OK, 201
Created, 400 Bad Request, 401 Unauthorized, 403 Forbidden, 404 Not
Found, 500 Internal Server Error, 502 Bad Gateway, 503 Service
Unavailable, etc.
REST APIs can be kept secure with the help of safety measures such as
Authentication and authorization, API Server Validation, TSl/SSL
Encryption, Rate-limiting for DDoS attacks, and sensitive information
such as username, password, or authentication token should not be
visible in URIs
There are other two API architectures used, SOAP (Simple Object
Access Protocol), and RPC (Remote Procedure Call)
JAXB is a Java arch used for XML binding in RESTful web API.
336. What is AJAX?
The HEAD method is used to return the HTTP Header in read-only form
and not the Body.
ResourcesRequest
Headers
Request Body
Response Body
Status codes
In the REST API architecture, HTTP requests are used for accessing
and using data. The data accessed using REST API can be used to
read, update, delete, and create operations concerning resources.
352. If there is 4 write acl 3 acl is not access but one acl is access then
what will happen
If the first three ACLs do not grant access (i.e., they evaluate to false),
and the fourth ACL grants access (i.e., it evaluates to true), then access
will be allowed according to the fourth ACL.
If any of the ACLs grants access before reaching the fourth ACL (e.g., if
the second or third ACL grants access), then the evaluation process
stops, and access is granted based on that ACL. The remaining ACLs
are not evaluated.
If none of the ACLs grant access (i.e., they all evaluate to false), then
access will be denied.
1. Bar reports: They allow you for comparing scores over data
dimensions.
2. Pie and Donut reports: It helps to visualize the relationship
between parts and the entire data set using various shapes like
pies.
3. Time Series reports: It helps to visualize data over time. You
can make use of MetricBase data in time series reports, along
with your instance data and imported data sources.
4. Multidimensional reports: It helps to visualize data across
dimensions in a table or graph.
5. Scores: It helps to visualize single data points either as a single
value or across ranges.
6. Statistical reports: It helps to visualize data with statistical
values like means and medians.
7. Other reports contain calendars, lists, and maps.
358. How to set the invalid queries into empty result sets in
ServiceNow?
359. List out the order of processing for Record ACL rules in the
ServiceNow platform.
Conclusion:
We believe that you found this particular article very useful and
insightful for your ServiceNow interview preparations. Get yourself
prepared for every question thoroughly as it is going to enhance your
understanding of the subject. Apart, you can also take inspiration from
these questions, so as to get an idea of what type of questions are
being asked in the ServiceNow interview and how your responses
should be presented to the interviewer.
The next() method is used for moving into the next record in
GlideRecord. _next() is quite similar to next(), the difference is it is used
when you query the table that has next as a column name.
364. What is a business rule?
365. Write the full form of CMDB and explain what is it?
The data lookup and record matching features allow you for setting up
the field value based on a particular condition instead of scriptwriting.
For example, on incident forms, the priority lookup rules automatically
sample data. Now, set the priority of an incident based on the urgency
values and the incident impact. Data lookup rules allow you to specify
the fields and conditions where you wish data lookup to happen.
The import set tool is utilized for importing data from multiple sets of
data sources and then map that data into ServiceNow tables through
transform maps. It behaves as a staging table for imported records.
Metrics are used for recording and measuring the workflow of individual
records. By using metrics, customers are able to arm their process by
giving tangible figures for measuring. For example, how much time it
takes before a ticket is reassigned or changes its state.
379. What are the different types of searches that are available in
ServiceNow?
Following are some of the tips that you can keep in mind while
preparing for the ServiceNow Interview: