My Servicenow Final Interview Questions 2020
My Servicenow Final Interview Questions 2020
Self introduction:
I am adding users in groups and give roles to that groups based on the
requirements.
2. What is ITOM?
IT Operations management is the administrative area involving technology infrastructure
components and the requirements of the individual applications, services, storage,
networking and connectivity elements within an organization. Get better visibility into your
infrastructure and services, prevent service outages, and expand your organization's operational
agility with Service Now® IT Operations Management.
Cloud computing is the delivery of different services through the Internet, including data storage,
servers, databases, networking, and software. Like
Email
Storage, backup, and data retrieval
Creating and testing apps
Analyzing data
Audio and video streaming
Delivering software on demand
Service Now is a software platform which supports IT Service Management (ITSM). It helps
you to automate IT Business Management (ITBM). This cloud-based platform is designed
based on ITIL guidelines.
Banner Frame:- the banner frame shown the top of every service now home page. It
contains a business Logo and Caption.
1. User Menu: - This control allows the user to access and modify his logged in user
profile.
2. Impersonate User:- Administrator can impersonate other authenticated users
for testing purpose or better understanding customer issue.
When impersonating another user, the administrator has access to exactly what
that user can access in the system, including the same menus and modules.
4. Global search:- this control helps to search for records from table.
5. Connect sidebar icon:- It is used for connect the co-workers and also find
existing conversations.
6. Help Icon:- It is used for help the user with documents on servicenow.
7. Settings icon:- this control opens a popup window with various options for
system settings.
Content Frame:- The content frame displays content pages when users select
modules in the application navigator.
Type of Reports:
List chart
Time series charts
Column and bar charts
Pies chart
Dials chart
Box chart
Pyramid chart
Single score chart
Donut chart
18. What is dashboards in servicenow?
A dashboard is the graphical representation of the data generated by a report or multiple reports
at certain point in time.
Business rule is which perform DML operation and it is also server side script that runs when
record is displayed,inserted,updated,deleted or when a table is queried.
To configure business rules first you need to determine when the business rule should run and
what action it should takes.
For example:
We get some incidents from avantra third party tool by default in our incident form created by
populate as a avantra_ticket but when incident created from avantra tool they want to populate
created by as Avantra. I got this requirement from my client.
Table: incident
When: before
Insert.
If (current.sys_created_by == 'Avantra_ticket'){
var user =gs.getUser();
var cd = user.getUserByID('ec259973db3110107851656b4b9619e6').getLastName();
current.sys_created_by = cd;
gs.addInfoMessage('kambhampati');
}
Types of business rules:-
Before business rule: after the user submits the form but before any action is taken on the record
in the database.
After business rule: after the user submits the form and after any action taken on the record in
database.
Display business rule: before the form is presented to the user, just after the data is read from
the database.
Async business rule: Async business rule is triggered when user submits the form and any
action is taken on the record in the database however it creates a schedule and run the job.
For example: when incident is created with priority1 then create an event to send notification.
29. Which glide function is used to retrieve the number of rows of a table?
30. How to determine whether any of the field value in a record has changed?
By using the method changes() you can determine that the field value has been changed
for a record.
Go to the dictionary of that table and add no_attachment to the Attributes field.
32. How to set the default value of a date field to current datetime value?
Goto the dictionary of the respective date-time field and set the default value as :
javascript:gs.nowDateTime();
33. What is the significance of setLimit(n) function?
Example:
grIncident.addQuery('priority','5');
grIncident.addQuery('category','inquiry');
grIncident.setLimit(10);
grIncident.query();
if (grIncident.next()) {
Using an encoded query is often easier than multiple addQuery lines. You can also use
Copy Query to help figure out your encoded query content which is helpful.
Example:
grIncident.addEncodedQuery('priority=5^category=inquiry');
grIncident.query();
while (grIncident.next()) {
35. How will you get all the records where the incident is having category as hardware or
software?
36. How do you get the records of a specified fields which are not null?
You can use the g_form.setVisible(‘fieldname’, ‘value’); method to show/hide a field using
client script.
Approval and rollback activities: Approval and rollback activities generate and
manage approvals. Not all workflows can include approval activities.
Notify activities: Notify workflow activities manage calls and SMS messages
in Notify.
Timer activities: Timer activities pause workflows for set periods of time.
Utility activities: Utility activities provide controls over the path of the workflow,
and other useful tools.
If you want to receive emails from users or customers we can use inbound email actions.
Coalesce is a property of a field that we use in transform map field mapping. Coalescing on
a field (or set of fields) lets you use the field as a unique key. If a match is found using the
coalesce field, the existing record will be updated with the information being imported. If a
match is not found, then a new record will be inserted into the database.
A transform map transforms the records imported into ServiceNow import set table to the
target table. It also determines the relationships between fields displaying in an Import Set
table and fields in a target table.
BSM Map is a Business Service Management map. It graphically displays the Configuration
Items (CI). These items support a business service and indicates the status of those
Configuration Items.
Each update set is stored in the Update Set [sys_update_set] table. The customizations
that are associated with the update set, are stored in [sys_update_xml] table.
55. What happens when you mark a default update set as complete?
If the Default update set is marked Complete, the system creates another update set
named Default1 and uses it as the default update set.
56. Can you add Homepages and Content pages to ‘update sets’ in ServiceNow?
Homepages and content pages don’t get added to ‘update sets’ by default. You need to
manually add pages to the current ‘update sets’ by unloading them.
Reference qualifiers restricts the data, that can be selected for a reference field.
58. What is the latest servicenow user interface and when was it released?
It is a unique 32-character GUID that identifies each record created in each table in
ServiceNow.
60. Can you update a record without updating its system fields(like sys_updated_by,
sys_updated_on)?
Yes, you can do it by using a function autoSysFields() in your server side scripting.
Whenever you are updating a record set the autoSysFields() to false.
gr.query();
if(gr.next()){
gr.autoSysFields(false);
gr.update();
61. Which method do you use to get all the active/inactive records from a table?
You can use addActiveQuery() method to get all the active records and addInactiveQuery()
to get the all inactive records.
Search screens: Use a form like interface to search for records in a table. Administrators
can create these custom modules.
When you add a widget to a page using the Service Portal Designer, it creates a widget
instance. A widget instance is a reference to a widget that contains a location, properties,
and CSS specific to that instance.
SLA’s Stands for service level agreements. It is basically a set of agreements between a
service provider and internal or external customer .SLA is all about how much time we can
spend to resolve that particular issue in service now.
ref_contributions=ui_macro_name
<g:ui_macro_name />
82. What is CMDB?
CMDB stands for configuration management database.
It is a data repository that contains all the assets and services managed by a company. This
information includes servers, network devices, applications, services and more.
That contains all relevant information about the hardware and software components used
in an organization’s IT services and it is also contains the relationship between those
components.
Understanding your organization’s IT environments is easy with the service now
configuration management database. CMDB will improve our capability for delivering
services.
We can use client side script in service catalog, UI policies, UI Actions, UI macros, UI
pages, UI properties.
On Load client script:- On load client script runs when user opens the form and
before user can enter the data on the form. It is usually used to set default values on
the form or showing message or popup while form is opened.
OnSubmit:- On Submit client script runs when a form is submitted. It is usually used
to validate things on the form before the submission of the form.
OnChange:- On change client script runs when a particular field value changes on
the form. It is used when you want to perform some action on client when field
value changes.
OnCellEdit:- OncellEdit client script runs when user change value of a field in a list.
g_scratchpad is a temporary variable to pass server side values to client side if client need
server data. Display business rule is used to initialize scratchpad and make it available to
client script.
The schema map displays the details of tables and their relationships in a visual manner,
allowing administrators to view and easily access different parts of the database schema.
A foreign record insert occurs when an import makes a change to a table that is not the
target table for that import. This happens when updating a reference field on a table.
95. How you can check on which service now instance node you are working?
Go to System Diagnostic -> Stats. Statistic page will be open where you can get the details
of node and the instance on which you are working on.
If you want to abort the current database action using the setAbortAction() method.
The process flow formatter provides a graphical summary of the stages in a process.
The formatter is typically shown at the top of forms that are part of a process. Each record
on the Flow Formatter [sys_process_flow] table represents a process stage and can have a
different condition applied to it.
Gauges are containers for holding graphical content on dashboards and homepages
in Service Now®, but gauges are no longer supported. Widgets are the supported
containers for graphical content. It is not possible to create gauges through the Dashboard
and Homepage user interfaces.
The form context menu provides controls based on the table and user access rights.
Administrators can customize some of the options available on a context menu using UI
actions.
102. What is the master table that contains a record for each table in the database?
Sys_db_object.
103. Which would NOT appear in the History section of the Application Navigator?
UI Pages.
104. What module in the Service Catalog application does an Administrator access to
begin creating a new item?
Maintain Items.
105. Which of the following types are client scripts supported in Service Now?
OnSubmit, onCellEdit, onLoad onChange.
107. Buttons, form links, and context menu items are all examples of what type of
functionality?
UI Actions.
110. What are the main UI component(s) of the Service Now Platform?
Banner Frame, Application Navigator, Content Frame.
111. Access Control rules may be defined with which of the following permission
requirements?
Roles, conditional expressions, scripts.
112. A group is stored in which table?
Group [sys_user_group].
116. From the User menu, which actions can a user select?
Log Out Service Now, Elevate Roles, And Impersonate Users.
The purpose of the Change Management process is to control the all changes in IT
services.
The Content Management System (CMS) enables you to create a custom interface for
the Now Platform and Service Now applications. This allows your end users to request
items, read articles, and update records in a simple, web-like interface that can be
unique to your organization.
Earlier my client was using BMC remedy tool; then they have decided migrate to
Service-Now, so they have given training me on Service-Now. Initially my career was
starts with just administration part but later I got a chance to working with other areas
like in development and implementation develop scoped application finally
integration part as well.
129. Could you please tell me what all you have done in Service-Now?
131. Could you please tell me your experience in SRM(service request management)?
Yes, I have worked on Service Catalog. (Note: SRM = Service catalog in Service Now).
I have created catalog items with variables and variable sets. I have used workflows
And execution plans to design the workflow of a catalog item.
132. What is an execution plan?
It is an alternative to the workflow to design the process of a catalog item. It can be
done by using UI customizations.
133. Do we have any cheat codes to open tables and forms for which we don’t have access?
Table_name.do and table_name.list
134. How can we restrict the users seeing the application and modules?
We can give roles to access a specific applications and module.
135. What is the difference between Record Producer and catalog item?
We can create service catalog items to provide a service to our customers. A record
producer is alternative way to create a record through service catalog.
139. How do you migrate the customization and code into different instances?
We use update sets.
140. Could you please tell me the procedure for creating an SLA?
We go to Sla tables and select the table on which SLA need to be established and
give start, stop, pause conditions to it.
143. What do we need to do to make a knowledge article available to all the users?
We need to assign public role to the knowledge article.
149. How to set the default value of a date field to current date time value?
Go to the dictionary of the respective date-time field and set the default value as :
javascript:gs.nowDateTime();
4. Only roles listed in this property are able to upload attachments to a record. If no
roles are entered, then all roles can upload attachments to ServiceNow forms.
5. Click Save.
Open 'All Active Transactions' under 'User Administration' and you can kill the
running transactions.
139. Which object is used to refer the current logged in user in client script?
You can use the object g_user object to get the details of current active user.
The primary difference between these methods is that g_scratchpad is sent once when
a form is loaded (information is pushed from the server to the client),
whereas GlideAjax is dynamically triggered when the client requests information
from the server. Other methods, GlideRecord and g_form.getReference() are also
available for retrieving server information.
However, these methods are no longer recommended due to their performance
impact. Both methods retrieve all fields in the requested Glide Record when most
cases only require one field.
142. How we can get information from the server? And Among them which are the best ones.
We can get information from server using g_scratchpad, GlideAjax, GlideRecord,
g_form.getReference(). The top ways to get information from the server are
g_scratchpad and asynchronous GlideAjax lookup.
ITIL can open, update, close incidents, problems, changes, config management items
but ITIL_Admin role has the ability to delete incidents, problems, changes, and other
related entities.
152. How can you redirect an end user to a particular page after the record producer is
submitted?
Order guides enable customers to make a single service catalog request that generates
several items.
g_user.hasRoleExactly():-
return true only if the current user has specified role.
g_user.hasRoles():-
returns true only if the current user has atleast one role.
g_user.hasRoleFromList():-
return true if the user has at least one of the specified roles or has the admin role.
g_form is a global object in the GlideForm class that references the currently active form.
g_user is a global object in GlideUser that references the currently active user .It contains
information about the current user.
Note:- Both runs on Client Side.
Internal services are delivered between departments or business units in the same
organization.
External services are delivered to external customers.
Service Now provides various Inbound and Outbound web services: Inbound web
services allow you to access and modify Service Now data using a client application.
Direct Web Services: query tables and records directly using SOAP, REST, or other web
service formats.
170. What is the use of outbound rest web service in service now?
Service Now outbound REST functionality allows you to retrieve, create, update, or delete
data on a web services server that supports the REST architecture.
The HTML sanitizer automatically cleans up markup in HTML fields. It helps to eliminate
code and protect against security concerns like cross-site scripting attacks.
173. Name the method used in business rule to trigger event for email notification?
GlideForm (g form)
GlideUser (g user)
GlideList2 (g_list)
176. How to get current logged in user full name in client script script?
By using g_user.getFullName() method.
178. What function you will use to stop running of business rule in a script?
We can use gr.setWorkflow(false); in script to disable business rule.
function HelloWorldParse(response) {
var answer =
response.responseXML.documentElement.getAttribute("answer");
alert(answer);
}
JavaScript objects are containers for named values called properties or methods.
All cars have the same properties, but the property values differ from car to car.
<html>
<body>
<p id="demo"></p>
<script>
var i;
document.getElementById("demo").innerHTML = text;
</script>
</body>
</html>
<body>
<h2>JavaScript Functions</h2>
<p>This example calls a function which performs a calculation, and returns the result:</p>
<p id="demo"></p>
<script>
return p1 * p2;
</script>
</body>
</html>
Number.style.backgroundColor = ‘blue’;
4. Types of discovery?
There are two types of discovery Horizontal discovery and top down discovery.
Horizontal discovery:
Horizontal discovery is technique that discovery uses to scan your network find computers and
devices and then populate that data into CMDB it also creates a relationship between CIs.
Example: if there is a computer found by discovery and there is an application found on that
same computer then discovery creates a relationship between these two CIs. Horizontal
discovery is not aware of business services and does not create relationship between CIs based
on business service they are in.
Types of horizontal discovery: network discovery, CI discovery, Cloud discovery, Server less
discovery.
5. Phases of discovery?
There are 4 phases of discovery:
Scanning:- which scans for different devices.
Classification:- which classify what type of device is found.
Identification:- which determines if a CI for device exists in the CMDB or not
Exploration:- which looks for the additional information of the same discovered device.
Query builder
Query builder is Creates relationships between two CI tables Or Creates relationship between CI’s
and Non CMDB tables like incident table.
We are using multiple data sources to get CMDB data. If you are not using reconciliation rules or
definition then you will be having duplicate records.
CMDB_CI.
Cmdb_rel_ci.
My Questions
3. How to stop to insert new record and just to allow to update record in transform map?
If you want to completely disallow insert then On your Transform Map Click On "Run Script" and use
below code.
if (action == 'insert' ){
ignore = true;
}
getXMLWait(): it is used when you want to stop processing until the results are returned.
8. Table API?
Table API allows you to perform create, read, update, delete operations on existing table.
POST https://dev84324.service-now.com/api/now/table/{tableName}
var date =
"u_birth_dayONToday@javascript:gs.daysAgoStart(0)@javascript:gs.daysAgoEnd(0)"; // get
this encoded query depending on your field on user table
var gr = new GlideRecord('sys_user');
gr.addEncodedQuery(date);
gr.query();
while(gr.next())
//gs.log(gr.email ,'prateek_new');
gs.eventQueue("user_birthday",gr, gr.email);
${mail_script:Email_script_name}
${URI}
${URI_REF}
${event.Parm1}
${report:reportID:sys_id}
${report:dashboardID:sys_id}
function onSubmit() {
if (g_form.getValue('category') == 'network') {
var ticket = confirm('not able to submit form');
if (ticket == true) {
return false;
} else{
return true;
}
}
}
If(current.category == ‘hardware’){
18. How to pass value from one activity to another in workflow of service now?
workflow.scratchpad.Category = current.category;
19. What is the use of wait for condition and when to use it in workflow?
We are creating some catalog task based on the condition. If you want to wait for all those
tasks are completed then we can you wait for condition.
answer = true;
grCatTask.addQuery('request_item', current.sys_id);
grCatTask.query();
while (grCatTask.next()) {
answer = false;
}
}
21. If category is hardware then I want get only hardware CI’s in configuration item field in
incident?
In this case we need to write script include then we can call the script include in reference
qualifier.
Script include Name : GetConfiguration_Item
Category: function(){
gs.addInfoMessage(‘current.category);
if(current.category == ‘hardware’){
return “sys_class_name = cmdb_ci_hardware”;
}
Reference Qualifier:
OnBefore: The onBefore event script is processed at the start of a row transformation,
before the source row is transformed into the target row.
OnAfter: The onAfter event script is processed at the end of a row transformation, after
the source row has been transformed into the target row and saved.
OnComplete: The OnComplete event script is processed at the end of an import run,
after all data rows are read and transformed.
23. I don’t want to edit state value in list view by using client script?
callback(saveAndClose);
}
function onCreateChildIncident(){
NOW._createChildIncident(g_form.getUniqueValue());
}
26. How to update target incident by using rest message in service now?
We need to write transform map script in target table.
if (source.u_incident_number == '') {
var number = new NumberManager('incident');
return number.getNextObjNumberPadded();
} else {
return source.u_incident_number; // return the value to be put into the target field
}