Thursday, 11 April 2019

ServiceNow Interview Questions Part 4

Q.Which role is required to create and access baseline?
ecmdb_admin role is required to create and access baselines.
Q. How to change the recipient limit tin email notification?
By setting the system property
Q. What is the difference between ${URI} and ${URI_REF}?
${URI} shows the word LINK where as ${URI_REF} shows the display value of the record as the link text.
Q. How to hide watermark globally?
Create a new property named and set it to false.
Q. What is a BSM Map?
BSM Map is a Business Service Management map.It graphically displays the configuration items (CI) that support a business service and indicates the status of those configuration items.
Q. In which table update sets and customization are stored?
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 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.
Q. Does Homepages and Content pages are added to the update sets ?
Homepages and content pages are not added to update sets by default. You must manually add pages to the current update set by unloading them.
Q. What is Reference qualifier?
Reference qualifiers is used to restrict the data that is selectable for a reference field.
Q. 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 organization.
Q. How to disable client transaction ?
Set the glide.client.track_transaction_timingsproperty to false to disable any client transaction.
Refer for more :
Q. How to change the Homepage layout?
Administrators can create or modify layouts by navigating to Homepage Admin > Layouts.
Q. How to change the banner and list caption background color?
You can change banner and list caption background color by navigating to
System Properties > CSS.
Q. How to create a new role?
Navigate to User Administration > Role and click New.
Q. Can I have more than one function listening to the same thing?
You can, but there is no guarantee of sequencing. You cannot predict what order your event handlers will run.
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 result set from two tables in glide script?
addJoinQuery(joinTable, [primaryField], [joinTableField])
Note : This is not a true DATABASE Join. addJoinQuery() adds a subQuery.
Q. Which object is used to reference the current active form in client script?
g_form object is used to reference the current active form in client script
Q. 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.
Q. State the best practices of client scripts?
Few of the best practices to use client Scripts :
Enclose Code in Functions.
Aviod DOM manipulation, use g_form object.
Avoid global client scripting, etc.
Q. How will you hide/show a field using client script?
You can use the g_form.setVisible(‘fieldname’, ‘value’); method to show/hide a field using client script.
Q. What is the processing order for Record ACL rules?
Record ACL rules are processed in the following order:
Match the object against field ACL rules.
Match the object against table ACL rules.
User must pass both field and table ACL rules in order to access a record object Relationship.
Q. How do you get the records of a specified fields which are not null ?
addNotNullQuery(String fieldName) can be used.
Example : To get all the records where ‘name’ is not null.
Q. How will you get all the records where incident is having 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’);
Q. How to set the invalid queries into empty result sets ?
By default queries with invalid field names run but ignore the invalid condition. For more strict query control you can enable the glide.invalid_query.returns_no_rows property which will result in an empty result set for invalid queries.
Q. How to determine whether any of the field value in a record have changed ?
By using the method changes() you can determine that the field value has been changed for a record.
Q. 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.
Q. Which glide function is used to retrieve the number of rows of a table?
Using getRowCount() method .

No comments:

Post a Comment