
Infosys

10+ Infosys Servicenow Developer Interview Questions and Answers
Q1. Write code to auto-close 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
Q2. 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.
Q3. What is the difference between inbound & outbound 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.
Q4. How do you create a flow for 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
Q5. 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.
Q6. Write a script to mask a single line text field to mask the value ?
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
Q7. Write a program to get the Palindrome sub-string from the given string ?
Program to find Palindrome sub-strings in a given string.
Iterate through each character in the string and check for palindromes.
Use two pointers to expand around the center of each character to find palindromes.
Store the palindromes in an array of strings.
Q8. 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
Q9. Explain all (Incident, Problem, Change, Request Management) ITSM life cycles ?
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.
Q10. How do you make integrations in ServiceNow ?
Integrations in ServiceNow are made using APIs, web services, and scripting.
Use REST APIs to integrate with external systems
Leverage SOAP web services for bi-directional communication
Utilize scripting such as JavaScript to automate processes
Use MID Server for secure communication with on-premise systems
Q11. How do we use REST APIs in ServiceNow ?
REST APIs in ServiceNow allow users to interact with the platform programmatically.
REST APIs in ServiceNow can be used to create, read, update, and delete records in tables.
Authentication is required to access REST APIs, using basic authentication or OAuth.
REST API endpoints in ServiceNow follow a standard format: https://
.service-now.com/api/now/ REST APIs can be tested using tools like Postman or cURL.
Q12. What is turnstile activity in workflow
Turnstile activity in workflow refers to the process of allowing only one instance of a workflow to run at a time.
Turnstile activity ensures that only one instance of a workflow is active at any given time
It prevents multiple instances of the same workflow from running simultaneously
This helps in maintaining data integrity and avoiding conflicts in the workflow process
Q13. Difference between record producer and Service Catalog
Record producer allows users to create new records, while Service Catalog offers predefined services for users to request.
Record producer is used to create new records in a specific table
Service Catalog offers predefined services for users to request
Record producer allows for customization of the form layout and fields
Service Catalog provides a user-friendly interface for requesting services
Record producer can be used for creating incidents, changes, or any other type of reco...read more
Q14. How to display top 10 incidents
To display top 10 incidents, use a query to retrieve incidents sorted by priority and limit the results to 10.
Use a query to retrieve incidents from the database
Sort the incidents by priority in descending order
Limit the results to 10 incidents
Q15. Write code to display choices based on role
Display choices based on user role using code
Create a function to check user's role
Use conditional statements to display choices based on role
Assign choices to an array of strings
Q16. Type of change and differences
Types of changes in Servicenow and their differences
Standard Change: pre-approved, low-risk, routine changes
Normal Change: requires assessment and approval
Emergency Change: implemented immediately to resolve critical issues
Major Change: significant impact on services or infrastructure
Minor Change: minimal impact on services or infrastructure
Q17. what is orderguide
Orderguide is a feature in ServiceNow that allows users to create and manage a list of items to order.
Orderguide helps users easily select and order items they need.
Users can customize their orderguide with specific items and quantities.
Orderguide streamlines the ordering process by providing a structured list of items to choose from.
Q18. Client scripts usage
Client scripts are used in ServiceNow to run scripts on the client side to customize forms and fields.
Client scripts are used to perform actions on forms and fields without server interaction
They can be used to set field values, show or hide fields, or validate data
Client scripts can be written in JavaScript and attached to specific forms or fields
Q19. Tasks completed
I have completed various tasks related to Servicenow development, including customization, integration, and automation.
Customizing forms and workflows to meet specific business requirements
Integrating Servicenow with other systems using APIs
Automating repetitive tasks using scripts and workflows
Top HR Questions asked in Infosys Servicenow Developer
Interview Process at Infosys Servicenow Developer

Top Servicenow Developer Interview Questions from Similar Companies





Reviews
Interviews
Salaries
Users/Month

