Interview Q&A
Interview Q&A
You can use addActiveQuery() method to get all the active records and
addInactiveQuery() to get the all inactive records.
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.
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.
If the Default update set is marked Complete, the system creates another update
set named Default1 and uses it as the default update set.
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.
Global text search: Finds records in multiple tables from a single search field.
Search screens: Use a form like interface to search for records in a table.
Administrators can create these custom modules.
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.
It is used to enhance the system logs. It provides more information on the duration
of transactions between the client and the server.
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.
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.
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:
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
Go to that respective field dictionary and set the unique check box to true.
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
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;
Navigate to System Policy > Email > Inbound Actions and Click New.
If the Default update set is marked Complete, the system creates another update set
named Default1 and uses it as the default update set.
40) How do you get the result set from two tables in the glide script?
g_form object is used to reference the currently active form in the 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?
gr.initialize();
gr.setValue("urgency", 1);
gr.insert();
It does not provide security for It provides more security for data.
Client-side scripting Server-side scripting
data.