Skip to main content

Posts

Showing posts from June, 2021

Access Control List (ACL) in ServiceNow

First, Let's understand what is Access Control List (ACL) in ServiceNow? Access Control Lists are the process by which ServiceNow provides granular security for its data and can be applied to individual records, as well as fields within those records. Rules for access control lists (ACLs) restrict access to data by requiring users to pass a set of requirements before they can interact with it.  All access control list rules specify:  1.> The object and operation being secured  2.>The permissions required to access the object There are some important ACL record operation types  - create : Enables users to insert new records (rows) into a table. read : Enables users to display records from a table. write : Enables users to update records in a table. delete : Enables users to remove records from a table or drop a table. edit_task_relations : Enables users to extend the Task [task] table. edit_ci_relations : Enables users to extend the Configura...

ServiceNow Interview Questions - real time

Let's see some ServiceNow Scenario based Interview Questions & Answers here, 1.> How to fetch latest 10 incident records ? var grIncident = new GlideRecord('incident');  gr.orderByDesc('sys_created_on');  gr.setLimit(10);  gr.query();  while (gr.next()) {  gs.print('check the :'+ grIncident.number);   } 2.>How can you populate caller_id in short Description on Problem form? Write Onchange client script on Problem table on change of caller Id field  var caller =g_form.getValue(‘caller_id’);  g_form.setValue(‘short_description’, caller); 3.>How to send notification to the user who is member of assigned group? You can write the below code in Advanced condition of Notification gs.getUser().isMemberOf(current.assignment_group); 4.> How can you populate the only users whose department is “Finance” in caller field on Incident form. Use Simple Reference Qualifier & select “department is “Finance”. You can write the code ...

ServiceNow Reference Qualifier with real time scenario

Let's understand about ServiceNow Reference Qualifier which is quite important topic and  an be used to filter the data on reference field.  What is Reference Qualifier ? Use reference qualifiers to create filters that restrict the data that is returned for a reference field. What are types of Reference Qualifier ? 1.> Simple 2.> Dynamic 3.> Advanced 1.> What is Simple Reference qualifier ? Simple reference qualifiers use AND/OR statements (conditions) to create simple filters.  Ex - Use simple reference qualifiers when filtering on conditions such as whether a company is active, a user has a specific role, and/or a caller is in a specific time zone. 2.> What is Dynamic Reference Qualifier ? Dynamic reference qualifiers enable you to use a dynamic filter option to run a query against a reference field to filter the returned data set.  Ex- you can add dynamic filter created. In dynamic filter, you can call script include as per your requirement. Let's i...

ServiceNow Interview Questions & Answers

                                                                                                    ServiceNow Interview Questions             1.> what are b est practices for Server Side Scripting? Current.update() should not use in After BR – It’s calling itself over and again.  Don’t use gr as variable in script. Should not use GlideRecord  row count, use GlideAggregate. Use conditions in BR, when to run always. Don’t use global BR, use script include instead of that. Script should not contain hard coded IDs. Don’t enable Business rule on Table transform map until & unless required. Too many workflows should not be checked out. Read ACL should not have GlideRecord/GlideAggregate Com...