SNOW Quiz
SNOW Quiz
Q. What is a gliderecord?
GlideRecord is a javaclass that is used for database operations instead of writing SQL queries.
Q. 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();
Q. 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.
Q. Which method is used 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.
Q. How do you get the records of a specified fields which are not null ?
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.
Q. How will you get all the records where incident is having category as hardware or software ?
Dictionary Overrides provides the capability to override several properties of a field in extended table.For example change
table is extended from task table.There is a field named status in task table and set as read-only.When we use this field in
change form it will show be a read only.We can set this to non-read only by using the dictionary override.Similarly there
are other properties that can be set for the fields in extended table.
Q. What is an UI policy?
UI policies are alternative to client scripts.It can be used to set a field as mandatory, readonly and visible on a form. You
can also use UI policy for dynamically changing a field on a form.
Q. What is a data policy?
Data policy checks the mandatory and read-only of a field whenever a record is inserted or updated through a web-service
or import set.For example: If a mandatory field in the incoming record (from import set or web-service) is empty then the
data policy will not allow to insert that record into the table.
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 database through any means.
Zing is the text indexing and search engine that performs all text searches in ServiceNow.
Q. How you can 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.
Q. What is a dashboard?
Dashboard is a visual collection of reports and paralytics presented as KPI scorecards and indicator summary tab.
Q. What is scorecard?
A scorecard can be used to measure the performance of an employee or a business process. It is a graphical representation
of progress over time. A scorecard belongs to an indicator. The first step is to define the indicators that you want to
measure. Scorecards can be enhanced by adding targets, breakdowns (scores per group), aggregates (counts, sums, and
maximums), and time series (totals and averages).
Client transaction timing provides more information on the duration of transactions between the client and the server.This
require to activate the plugin - "Client transaction timing plugin".
Go to the dictionary of that table and add "Add no_attachment" to the Attributes field.
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 or changes state.
Knowledge management uses these roles knowledge , knowledge_admin , and admin role.
Each update set is stored in the Update Set [sys_update_set] table, and the customizations that are associated with the
update set, are stored in [sys_update_xml] table.
Q. What is the processing order for Record ACL rules?
User must pass both field and table ACL rules in order to access a record object.
Note: Search screens: use a formlike interface to search for records in a table. Administrators can create these custom
modules.
setWorkflow(e) enables or disables the running of business rules that might normally be triggered by subsequent actions.
If the e parameter is set to false, an insert/update will not be audited. Auditing only happens when the parameter is set
to true for a GlideRecord operation.
Parameters:
e - Boolean variable that if true (default) enables business rules, and if false to disables them.
Q. 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.
example:
${URI} shows the word LINK where as ${URI_REF} shows the display value of the record as the link text.
Q. How do you get the result set from two tables in glide script?