Servicenow Developer
100+ Servicenow Developer Interview Questions and Answers

Asked in Wipro

Q. How do you calculate the time an incident is assigned to multiple groups?
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

Q. What is the difference between a service catalog, an order guide, and a record producer?
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

Asked in Wipro

Q. How can you populate the manager field using server-side code?
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

Q. Write code to auto-close a parent incident when all child incidents are closed.
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

Asked in Infosys

Q. Can we hide the hamburger (Context menu chooser) for a user?
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

Q. Write code to display the last 10 incidents created using a background script.
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




Asked in Infosys

Q. How do you create a flow for the automation of a business process?
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

Q. What is the difference between inbound and outbound integrations in ServiceNow?
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 🌟
Asked in Techstitch

Q. Write a program to either make a pattern using star or program of factorial in any of the preferred language
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

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.
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

Q. What is the difference between getXML, getXML wait, and GetXML answer?
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.
Asked in Ripton Solutions

Q. What is the difference between ITIL and the ITIL admin role?
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

Q. How can a server-side script be called from a UI action?
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

Q. What are the methods to call a server-side script from a client-side script?
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

Q. What will happen if we give none.* in ACL?
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.
Asked in Aceis Services

Q. What are Business Rule scripts, Client Script, UI Policies, and UI Actions scripting in ServiceNow? Please provide explanations along with examples for each.
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

Q. What is the difference between UI policies and client scripts?
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

Q. What is the procedure for sending a report with an attachment regarding an incident?
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
Asked in Ripton Solutions

Q. What is the difference between an after business rule and an async business rule?
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

Q. What are the different types of server-side scripts?
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

Q. How do you set the default value of a date field to the current date and time?
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

Q. What is an Asynchronous Business Rule?
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

Q. Write code such that the input field will accept only alphanumeric characters.
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

Q. Explain the ITSM life cycles for Incident, Problem, Change, and Request Management.
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

Q. What is an example of an asynchronous business rule?
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

Q. Write a program to separate numbers and alphabets in a given array of elements.
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

Q. Write a script to mask the value of a single-line text field.
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

Q. How many types of conditions are there in a workflow?
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

Q. Which is better, REST or SOAP integration?
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

Q. What is your understanding of Python syntax?
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
Interview Questions of Similar Designations
Interview Experiences of Popular Companies





Top Interview Questions for Servicenow Developer Related Skills



Reviews
Interviews
Salaries
Users

