0% found this document useful (0 votes)
42 views8 pages

Interview Q&A

Uploaded by

pavulurisatish64
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
42 views8 pages

Interview Q&A

Uploaded by

pavulurisatish64
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 8

1) What is Performance Analytics in ServiceNow?

Performance Analytics is an additional application in ServiceNow that allows


customers to take a snapshot of data at regular intervals and create time series for
any key performance indicator (KPI) in the organisation.

2) 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.

3) What is the difference between next() and _next() method?

next() method is responsible to move to the next record in GlideRecord. _next()


provides the same functionality as next(), intended to be used in cases when we
query the table having a column name as next.

4) 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.

Consider following Example:

var gr = new GlideRecord(‘incident’);


gr.query();
if(gr.next()){
gr.autoSysFields(false);
short_description = “Test from Examsmyntra” ;
gr.update();
}
5) What is a sys_id?

It is a unique 32-character GUID that identifies each record created in each table in
ServiceNow.
6) 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.

7) 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.

8) Which table stores update sets and customization?

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.

9) What types of searches are available in ServiceNow?

Following searches will help you find information in ServiceNow:

Lists: Find records in a list;

Global text search: Finds records in multiple tables from a single search field.

Knowledge base: Finds knowledge articles.

Navigation filter: Filters the items in the application navigator.

Search screens: Use a form like interface to search for records in a table.
Administrators can create these custom modules.

10) What do you mean by Metrics in ServiceNow?

Metrics, record and measure the workflow of individual records. With metrics,
customers can arm their process by providing tangible figures to measure. For
example, how long it takes before a ticket is reassigned.

11) How can you remove ‘Remember me’ check box from login page?
You can set the property – “glide.ui.forgetme” to true to remove the ‘Remember me’
check box from login page.

12) What is domain separation?

Domain separation is a way to separate data into logically-defined domains. For


example a client ABC has two businesses and they are using ServiceNow single
instance. They do not want users from one business to see data of other business.
Here we can configure domain separation to isolate the records from both
business.

13) What does the Client Transaction Timings plugin do?

It is used to enhance the system logs. It provides more information on the duration
of transactions between the client and the server.

14) What do you mean by foreign record insert?

When an import makes a change to a table that is not the target table for that
import, this is when we say a foreign record insert occurs. This happens when
updating a reference field on a table.

15) What is a glide record?

Glide record is a java class. It is used for performing database operations instead of
writing SQL queries.

16) What is the Parent table for incident, change and problem? What
does it do?

The Task table is the parent table of Incident, Problem & Change. It makes sure any
fields, or configurations defined on the parent table automatically apply to the child
tables.

17) Can you call a business rule through a client script?

Yes, it is possible to call a business rule through a client script. You can use glide
ajax for the same.

18) How can you cancel a form submission through client script?
In order to cancel a form submission the onSubmit function should return false.
Refer the below mentioned syntax:

function onSubmit() { return false; }

19) What do you mean by the term “Application” in ServiceNow?

Application is a group of modules that provides related information. For example, a


change application provides information related to the change process. It consists of
modules like create change tickets, view change tickets, etc.

20) How to enable or disable an application?

Navigate to the “Application Menus” module under the system definition application.
Open the respective application that requires enabling or disable. Set active as true to
enable it or set active to false to disable it

21) What is the difference between UI policy and data policy?

UI policy acts when a record is inserted or updated through a ServiceNow UI i.e


ServiceNow forms while data policy acts whenever a record is inserted or updated into
the database through any means.

22) How to set a field unique on the table

Go to that respective field dictionary and set the unique check box to true.

30) What role you are required to create/update ACL?

security_admin

31) How can you check on which ServiceNow instance node you are
working on?

Goto SystemDiagnostic -> Stats. Statistic page will be open where you can get the
details of the node and the instance on which you are working on

32) How to enable or disable the pie chart labels

To enable or disable the labels in the pie chart we need to set the property
glide.ui.chart.pie.labels to true or false.
33) What is the Schema map?

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.

34) How to set the default value of a date field to the current date-
time value?

Goto the dictionary of the respective date-time field and set the default value as
javascript: gs.now DateTime;

35) What is the significance of the set limit(n) function.

set limit(n) functions to limit the number of records to query by Gliderecord().

36) How to create an Inbound Email Action?

Navigate to System Policy > Email > Inbound Actions and Click New.

37) How to change the recipient limit in the email notifications?

By setting the system property glide.email.smtp.max_recipients.

38) What happens if a Default update set is marked 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.

39) How to disable client transactions?

Set the glide.client.track_transaction_timingsproperty to false to disable any client


transaction.
Refer

40) How do you get the result set from two tables in the glide script?

addJoinQuery(joinTable, [primaryField], [joinTableField])

Note: This is not a true DATABASE Join. addJoinQuery() adds a subQuery.


41) Which object is used to reference the currently active form in the
client script?

g_form object is used to reference the currently active form in the client script

42) How will you hide/show a field using client script?

You can use the g_form.setVisible(‘field name’, ‘value’); method to show/hide a field
using client script.

43) How will you get all the records where the incident is having a
category as hardware or software?

Use addOrCondition(String name, String oper, Object value) .


Example :

var gr = new GlideRecord(‘incident’);


var qc = gr.addQuery(‘category’, ‘hardware’);
qc.addOrCondition(‘category’, ‘software’);
gr.query();

44) Which glide function is used to retrieve the number of rows of a


table?

Using getRowCount() method

45) Insert record using the script

var gr = new GlideRecord("incident");

gr.initialize();

gr.setDisplayValue("caller_id", "Joe Employee");


gr.setValue("impact", 1);

gr.setValue("urgency", 1);

gr.setDisplayValue("cmdb_ci", "Oracle 11i");

gr.setValue("short_description", "Oracle DB is down");

gr.insert();

Client-side scripting Server-side scripting

Source code is not visible to the user


because its output
of server-sideside is an HTML page.
Source code is visible to the user.

In this any server-side technology can be


used and it does not
It usually depends on the browser depend on the client.
and its version.

It runs on the user’s computer. It runs on the webserver.

There are many advantages


linked with this like faster. The primary advantage is its ability to
response times, a more highly customize, response
interactive application. requirements, access rights based on user.

It does not provide security for It provides more security for data.
Client-side scripting Server-side scripting

data.

It is a technique used in web It is a technique that uses scripts on the


development in which scripts run webserver to produce a response that is
on the client’s browser. customized for each client’s request.

HTML, CSS, and javascript are


used. PHP, Python, Java, Ruby are used.

You might also like