We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Interview Questions for ServiceNow Technical - Consultant | 4-6 Years Experience

MohammadAtR
Tera Expert

Hi there,

 

Recently I attended an Interview for the role of ServiceNow Technical - Consultant and here are the questions that I faced.
1. Types of Business Rule
2. Types of Client Script
3. How to avoid duplicate while importing data through transform map?
4. How to find all Assignment group from Incident list?
5. How to filter Incidents created in the last 5 days using background script?
6. How does custom Business Rule precedes over OOT Business Rule?
7. How to know how much time a page took to load?
8. Types of ACL
9. Get the inactive members inside a group using script

 

Do mark this as helpful 👍 if it helped you in your interview preparation.

1 REPLY 1

MohammadAtR
Tera Expert

1. Types of Business Rule

  1. Display
  2. Before
  3. After
  4. Async

2. Types of Client Script

  1. onLoad
  2. onSubmit
  3. onChange
  4. onCellEdit

3. How to avoid duplicate while importing data through transform map?

  1. Coalesce - In case of duplicate, insert will be done first if record not found then update will be done for rest
  2. Using Transform script (when:onBefore)
  3. Cleaning the source (important).

4. How to find all Assignment group from Incident list?

  1. By clicking three dots on any column and selecting 'Group By'
  2. By clicking Context Menu(Hamburger Icon)

5. How to filter Incidents created in the last 5 days using background script?

var gr = new GlideRecord('incident);
gr.addQuery('sys_created_on', '>=', gs.daysAgo(5);
gr.query();
while(gr.next()) { 
  gs.print(gr.number);
}

 

6. How does custom Business Rule precedes over OOT Business Rule?

Use 'setWorkflow(false)'

 

7. How to know how much time a page took to load?

Scroll down to the bottom of the page, locate browser response time  icon.

 

8. Types of ACL

  1. client_callable_flow_object
  2. client_callable_script_include
  3. Flows
  4. Flow Action
  5. Gen_ai_agent
  6. GraphQL
  7. Processor
  8. Rest_endpoint
  9. UI Page
  10. Record

 

9. Get the inactive members inside a group using script

var gr = new GlideRecord('sys_user-grmember');
gr.addQuery('group.name','App Engine Admins'); ---> Give any group name
gr.addQuery('user.active',true);
gr.query();
var arr = [];
while(gr.next()) {
  arr.push(gr.getValue('user)); 
  gr.info(gr.user.firstname + ' ' + gr.user.lastname); 
}

 

Please mark this as helpful 👍 if this helped you in your interview preparation.

All the best!