Servicenow Developer

100+ Servicenow Developer Interview Questions and Answers

Updated 15 Jul 2025
search-icon

Asked in Wipro

1d ago

Q. How do you calculate the time an incident is assigned to multiple groups?

Ans.

To calculate the timing of an incident assigned to multiple groups, determine the start and end times for each group and calculate the total duration.

  • Identify the groups to which the incident is assigned

  • Determine the start time and end time for each group's involvement

  • Calculate the duration for each group

  • Sum up the durations to get the total timing of the incident

Asked in Wipro

5d ago

Q. What is the difference between a service catalog, an order guide, and a record producer?

Ans.

Service catalog, order guide, and record producer are different components in ServiceNow for managing and fulfilling service requests.

  • Service catalog is a centralized repository of services that users can request.

  • Order guide is a collection of related services grouped together for easy selection and ordering.

  • Record producer is a form-based interface that allows users to create records in different tables.

  • Service catalog provides a self-service portal for users to browse and r...read more

Servicenow Developer Interview Questions and Answers for Freshers

illustration image

Asked in Wipro

2d ago

Q. How can you populate the manager field using server-side code?

Ans.

To populate manager using server-side code, you can query the user table and retrieve the manager's details based on the user's ID.

  • Use GlideRecord to query the user table

  • Retrieve the manager's details using the user's ID

  • Set the manager field with the retrieved manager's details

Asked in Infosys

6d ago

Q. Write code to auto-close a parent incident when all child incidents are closed.

Ans.

Code to auto-close parent incident when all child incidents are closed

  • Create a script that runs on child incident closure

  • Check if all child incidents are closed

  • If all child incidents are closed, close the parent incident

Are these interview questions helpful?

Asked in Infosys

4d ago

Q. Can we hide the hamburger (Context menu chooser) for a user?

Ans.

Yes, the hamburger (Context menu chooser) can be hidden for a user in ServiceNow.

  • The hamburger menu can be hidden by modifying the UI policies and client scripts.

  • You can use CSS to hide the hamburger menu for specific users or roles.

  • Alternatively, you can customize the UI to remove the hamburger menu altogether.

Asked in LTIMindtree

2d ago

Q. Write code to display the last 10 incidents created using a background script.

Ans.

Code to display last 10 incidents in background script

  • Query incident table to get last 10 records

  • Use GlideRecord to fetch incident records

  • Sort records by created date in descending order

Servicenow Developer Jobs

CGI Information Systems and Management Consultants logo
CGI - ServiceNow Developer (3-8 yrs) 3-8 years
CGI Information Systems and Management Consultants
4.0
FIS Global Business Solutions India Pvt. Ltd. logo
ServiceNow Developer (SNOW,ITSM) 4-8 years
FIS Global Business Solutions India Pvt. Ltd.
3.9
Pune
Sopra Steria logo
ServiceNow Developer Technical Lead 6-8 years
Sopra Steria
3.8
Noida

Asked in Infosys

2d ago

Q. How do you create a flow for the automation of a business process?

Ans.

To create a flow for automation of a business process, you can use a workflow automation tool like Servicenow Flow Designer.

  • Identify the business process that needs to be automated

  • Map out the steps involved in the process

  • Use Servicenow Flow Designer to create a visual workflow

  • Add conditions, actions, and approvals as needed

  • Test the flow to ensure it functions correctly

  • Deploy the automated flow to streamline the business process

Asked in Infosys

5d ago

Q. What is the difference between inbound and outbound integrations in ServiceNow?

Ans.

Inbound refers to data coming into ServiceNow, while outbound refers to data going out of ServiceNow.

  • Inbound data is typically received through integrations, email, web services, etc.

  • Outbound data is usually sent to external systems, APIs, email notifications, etc.

  • Inbound actions can trigger workflows or create records in ServiceNow.

  • Outbound actions can update external systems or send notifications to users.

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Asked in Techstitch

3d ago

Q. Write a program to either make a pattern using star or program of factorial in any of the preferred language

Ans.

Program to print a pattern using stars in Python

  • Use nested loops to print the desired pattern

  • Increment the number of stars in each row to create the pattern

  • Example: Printing a pyramid pattern with stars

Asked in Accenture

1d ago

Q. What is record producer? How many ways we can call server script in client side? Few servicenow best practices we should follow. Workflow activities.

Ans.

Record producer is a feature in ServiceNow that allows users to create records in a guided manner.

  • Record producer provides a user-friendly interface for creating records with predefined templates and fields.

  • Server scripts can be called in client side using GlideAjax, g_form.getReference, and g_scratchpad.

  • Some ServiceNow best practices include using naming conventions, documenting changes, and testing in sub-production instances.

  • Workflow activities in ServiceNow include approv...read more

Asked in EPAM Systems

2d ago

Q. What is the difference between getXML, getXML wait, and GetXML answer?

Ans.

getXML, getXMLWait, and getXMLAnswer are different methods in ServiceNow for handling XML data.

  • getXML is used to retrieve XML data synchronously.

  • getXMLWait is used to retrieve XML data asynchronously.

  • getXMLAnswer is used to retrieve XML data and wait for a response.

4d ago

Q. What is the difference between ITIL and the ITIL admin role?

Ans.

ITIL is a framework for IT service management, while ITIL admin role is a job role responsible for implementing and managing ITIL processes.

  • ITIL is a set of best practices for IT service management

  • ITIL admin role involves implementing and managing ITIL processes

  • ITIL admin role is responsible for ensuring that ITIL processes are followed and optimized

  • ITIL admin role requires knowledge of ITIL framework and experience in IT service management

  • ITIL admin role may involve creating...read more

Asked in EPAM Systems

5d ago

Q. How can a server-side script be called from a UI action?

Ans.

A server-side script can be called from a UI action by defining a script action in the UI action configuration.

  • Define a script action in the UI action configuration with the appropriate server-side script function

  • Use gs.eventQueue() to trigger the server-side script from the UI action

  • Ensure proper permissions are set for the server-side script to be executed

Asked in EPAM Systems

4d ago

Q. What are the methods to call a server-side script from a client-side script?

Ans.

Methods to call a server-side script from a client-side script

  • Using AJAX to make a server-side request

  • Using REST API calls to interact with server-side scripts

  • Using server-side events triggered by client-side actions

  • Using server-side functions called from client-side scripts

Asked in Cognizant

2d ago

Q. What will happen if we give none.* in ACL?

Ans.

Using none.* in ACL will allow access to all fields in the table for all users.

  • Using none.* in ACL grants access to all fields in the table for all users.

  • This can be a security risk as sensitive data may be exposed to unauthorized users.

  • It is recommended to specify individual fields or use more restrictive ACL conditions.

2d ago

Q. What are Business Rule scripts, Client Script, UI Policies, and UI Actions scripting in ServiceNow? Please provide explanations along with examples for each.

Ans.

Overview of Business Rules, Client Scripts, UI Policies, and UI Actions in ServiceNow.

  • Business Rules: Server-side scripts that execute when a record is inserted, updated, or deleted. Example: Automatically set the priority of an incident based on its impact and urgency.

  • Client Scripts: Client-side scripts that run in the user's browser. Example: Validate a form field before submission to ensure it is not empty.

  • UI Policies: Rules that dynamically change the behavior of form fie...read more

Asked in Cognizant

4d ago

Q. What is the difference between UI policies and client scripts?

Ans.

UI policy and client script are both used in ServiceNow for controlling field behavior and data on forms.

  • UI policy is used to dynamically change field properties, visibility, and mandatory status based on certain conditions.

  • Client script is used to add custom logic and behavior to forms, such as field validation, calculations, and UI interactions.

  • UI policy is executed on the server side, while client script is executed on the client side.

  • UI policy is defined using a simple dr...read more

Asked in EPAM Systems

3d ago

Q. What is the procedure for sending a report with an attachment regarding an incident?

Ans.

To send a report with an attachment regarding an incident, follow these steps.

  • Navigate to the incident record in ServiceNow

  • Click on the 'More Options' menu and select 'Create PDF'

  • Attach the PDF report to the incident record

  • Notify the relevant stakeholders about the attached report

3d ago

Q. What is the difference between an after business rule and an async business rule?

Ans.

After business rules run synchronously after a record is saved, while async business rules run asynchronously.

  • After business rules are executed immediately after a record is saved.

  • Async business rules are executed in the background, allowing the user to continue working.

  • After business rules are useful for immediate actions or validations.

  • Async business rules are useful for long-running or non-blocking tasks.

  • After business rules can cause delays in saving records if they take ...read more

Asked in EPAM Systems

5d ago

Q. What are the different types of server-side scripts?

Ans.

The different types of server-side scripts include Business Rules, Script Includes, UI Policies, and Client Scripts.

  • Business Rules are used to define custom server-side logic that runs when a record is inserted, updated, or deleted.

  • Script Includes are reusable scripts that can be called from other scripts or business rules.

  • UI Policies are used to set mandatory or read-only fields on a form based on certain conditions.

  • Client Scripts are used to add client-side logic to forms a...read more

Asked in Cognizant

2d ago

Q. How do you set the default value of a date field to the current date and time?

Ans.

To set the default value of a date field to the current date time value, use a script to assign the value.

  • Create a client script or business rule to set the default value

  • Use the GlideDateTime API to get the current date time value

  • Assign the current date time value to the date field

Asked in Wipro

2d ago

Q. What is an Asynchronous Business Rule?

Ans.

Asynchronous Business Rule is a rule that runs in the background without blocking the user interface.

  • Executes in the background without blocking the UI

  • Used for long-running tasks

  • Improves performance and user experience

  • Examples: sending emails, updating records, etc.

Asked in Infosys

2d ago

Q. Write code such that the input field will accept only alphanumeric characters.

Ans.

Use JavaScript to restrict input field to alphanumeric characters only.

  • Use JavaScript event listeners to detect input in the field.

  • Check each character entered using regular expressions to allow only alphanumeric characters.

  • Display an error message if a non-alphanumeric character is entered.

Asked in Infosys

2d ago

Q. Explain the ITSM life cycles for Incident, Problem, Change, and Request Management.

Ans.

ITSM life cycles include Incident, Problem, Change, and Request Management.

  • Incident Management: Focuses on restoring normal service operation as quickly as possible.

  • Problem Management: Focuses on identifying and solving the root cause of recurring incidents.

  • Change Management: Involves controlling changes to the IT infrastructure to minimize impact on services.

  • Request Management: Handles user requests for IT services or information.

Asked in EPAM Systems

6d ago

Q. What is an example of an asynchronous business rule?

Ans.

An asynchronous business rule is a rule that runs in the background without blocking the user interface.

  • Asynchronous business rules are commonly used for long-running processes that do not require immediate user interaction.

  • They can be used for tasks such as sending email notifications, updating records in bulk, or performing complex calculations.

  • An example of an asynchronous business rule could be a rule that triggers a workflow to automatically escalate a ticket if it has n...read more

Asked in Infosys

5d ago

Q. Write a program to separate numbers and alphabets in a given array of elements.

Ans.

Program to separate numbers and alphabets in a given array of elements.

  • Iterate through each element in the array

  • Check if the element is a number or alphabet using regular expressions

  • Store numbers and alphabets in separate arrays

Asked in Infosys

6d ago

Q. Write a script to mask the value of a single-line text field.

Ans.

Script to mask a single line text field value

  • Use the 'onLoad' client script to mask the value on form load

  • Use the 'onSubmit' client script to mask the value before saving

  • Use the 'getDisplayValue' and 'setDisplayValue' methods to manipulate the field value

Asked in Infoblox

1d ago

Q. How many types of conditions are there in a workflow?

Ans.

There are two types of conditions in a workflow: condition builder and script condition.

  • Condition builder allows for creating conditions using a visual interface

  • Script condition allows for writing conditions using scripting languages like JavaScript

Asked in Cognizant

4d ago

Q. Which is better, REST or SOAP integration?

Ans.

It depends on the specific requirements of the integration. REST is generally preferred for its simplicity and flexibility, while SOAP is more rigid but offers more security features.

  • REST is lightweight and easier to use for simple integrations

  • SOAP has built-in security features like WS-Security

  • Consider the complexity of the data being exchanged and the level of security required when choosing between REST and SOAP

Asked in ITnow

3d ago

Q. What is your understanding of Python syntax?

Ans.

Python syntax encompasses rules for writing code, including variables, data types, control structures, functions, and more.

  • Variables: Use '=' to assign values. Example: x = 10

  • Data Types: Common types include int, float, str, list, dict. Example: my_list = [1, 2, 3]

  • Control Structures: Use 'if', 'elif', 'else' for conditional statements. Example: if x > 5: print('Greater')

  • Loops: 'for' and 'while' loops for iteration. Example: for i in range(5): print(i)

  • Functions: Define with 'd...read more

1
2
3
4
5
6
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
View all
Interview Tips & Stories
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories
Servicenow Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits