Servicenow Developer

100+ Servicenow Developer Interview Questions and Answers

Updated 30 Nov 2024

Popular Companies

search-icon

Q1. How to calculate timing of Incident which assigned to multiple group

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

Q2. What is difference between service catalog and order guide and 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

Q3. How to populate manager 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

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

Are these interview questions helpful?

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

Q6. What is difference between ITIL and 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

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

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

Q8. How do you create a flow for 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

Servicenow Developer Jobs

ServiceNow Developer - Portal 3-6 years
Schneider Electric India Pvt. Ltd.
4.2
Bangalore / Bengaluru
ServiceNOW Developer 3-7 years
Verizon Data Services India Pvt.Ltd
4.2
Bangalore / Bengaluru
ServiceNow Developer - 10 To 25 Years Exp - PAN INDIA 10-20 years
Cognizant
3.8
Pune

Q9. What is the difference between inbound & outbound 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.

Q10. Write code to auto-close 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

Q11. Difference between UI police and client script.

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

Q12. Write a code to show last 10 incident created in 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

Q13. Difference between after business rule 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

Q14. What is 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.

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

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

Q17. Explain all (Incident, Problem, Change, Request Management) ITSM life cycles ?

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.

Q18. Write a program to get the Palindrome sub-string from the given string ?

Ans.

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.

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

Q20. Write a script to mask a single line text field to mask the value ?

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

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

Q22. Data policy for data consistency, UI policy applied to form level

Ans.

Data policy ensures data consistency, UI policy controls form level behavior

  • Data policy defines rules for data consistency and integrity

  • UI policy controls the behavior of form fields and sections

  • Both policies can be applied at different levels such as table, field, or form

  • Data policy can prevent invalid data entry and enforce data standards

  • UI policy can hide or make fields mandatory based on user roles or conditions

Q23. Types of business rule and client script with example. Variables and variable set. Ways to import update set. Service catalog management.

Ans.

Types of business rules, client scripts, variables, variable sets, ways to import update sets, and service catalog management in ServiceNow development.

  • Types of business rules include onBefore, onAfter, async, etc. Example: onBefore business rule to validate form data before submission.

  • Client scripts are used for client-side scripting. Example: Client script to show a pop-up message on a form field change.

  • Variables are used to store data within a record. Example: Variable sto...read more

Q24. writ a quay that should retrieve all the the columns but show only 10 records and ordered by name

Ans.

Use SQL query to retrieve all columns, show only 10 records, and order by name

  • Use SELECT * to retrieve all columns

  • Use LIMIT 10 to show only 10 records

  • Use ORDER BY name to order the results by name

Q25. 1. Difference between CI and asset? 2. How to call script include from client side? 3. Diff. between record producer and Service Catalog? 4. Write script to create new records in User table?

Ans.

Answers to interview questions for ServiceNow Developer position.

  • CI (Configuration Item) represents a single, manageable component of an IT infrastructure.

  • Asset is a tangible or intangible item that is owned by an organization.

  • To call a script include from the client side, use the 'g_form' object and the 'getScript' method.

  • Record producer is used to create new records in a specific table, while Service Catalog is a collection of record producers and catalog items.

  • To create ne...read more

Q26. how to set default value of date field to current date time value

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

Q27. How do you make integrations in ServiceNow ?

Ans.

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

Q28. Have you worked on integrations

Ans.

Yes, I have worked on integrations.

  • I have experience integrating ServiceNow with third-party applications using REST APIs.

  • I have also worked on integrating ServiceNow with other ServiceNow instances using SOAP APIs.

  • I have used MID Server for integrating ServiceNow with on-premise applications.

  • I have experience in creating custom integrations using ServiceNow IntegrationHub.

  • I have worked on integrating ServiceNow with cloud-based applications like Salesforce and AWS.

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

Q30. Why is there a checkbox for client callable on script include

Ans.

The checkbox for client callable on script include allows the script include to be called from client-side scripts.

  • Client callable checkbox allows the script include to be accessed from client-side scripts in ServiceNow.

  • It enables the script include to be used in UI policies, client scripts, and other client-side scripts.

  • By checking the client callable checkbox, the script include can be invoked using GlideAjax calls from client scripts.

Q31. When you search a record on the global search in servicenow platform what happens

Ans.

When searching a record on global search in ServiceNow, the platform performs a search across all tables and fields to find relevant results.

  • ServiceNow platform uses the search index to quickly retrieve relevant records

  • Search results are displayed based on relevance and permissions

  • Users can refine search results using filters and sorting options

Q32. Difference between Asynchronous Business rule and after business rule

Ans.

Asynchronous business rules run in the background while after business rules run after the record is processed.

  • Asynchronous business rules are executed in the background without blocking the user interface.

  • After business rules are executed after the record is processed, potentially impacting user experience.

  • Asynchronous business rules are typically used for tasks that do not require immediate user interaction.

  • After business rules are commonly used for tasks that need to be co...read more

Q33. - reducing the time complexity of "for each loop"

Ans.

Use indexed for loop instead of for each loop to reduce time complexity.

  • Indexed for loop has a constant time complexity of O(1) whereas for each loop has a time complexity of O(n).

  • Indexed for loop is faster when accessing elements in an array.

  • Example: for (int i = 0; i < array.length; i++) { //access array[i] }

  • Example: for (String str : stringArray) { //access str }

Q34. Do you have idea about how the cloud works?

Ans.

Cloud computing involves storing and accessing data and programs over the internet instead of on a computer's hard drive.

  • Cloud computing allows users to access data and applications from any device with an internet connection.

  • It provides scalability, flexibility, and cost-efficiency for businesses.

  • Examples of cloud services include Amazon Web Services (AWS), Microsoft Azure, and Google Cloud Platform.

Q35. How do we use REST APIs in ServiceNow ?

Ans.

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.

Q36. What is servicenow and how you will use this?

Ans.

ServiceNow is a cloud-based platform that provides IT service management, IT operations management, and IT business management solutions.

  • ServiceNow helps organizations to streamline their IT operations and improve efficiency.

  • It offers a range of modules such as Incident Management, Change Management, Problem Management, and Service Catalog.

  • ServiceNow can be customized to meet the specific needs of an organization.

  • It can also be integrated with other tools and systems to provi...read more

Q37. How to get logged in user details in form

Ans.

Use GlideUser class to get logged in user details in a form

  • Use GlideUser class to get the current user's details

  • Access user details like name, email, roles, etc. using GlideUser methods

  • Example: var user = gs.getUser(); var userName = user.getName();

Q38. How does ACL wok General to specific or vice versa

Ans.

ACL works from general to specific

  • ACL evaluates rules from general to specific based on order of precedence

  • If a user has multiple roles, the most specific role takes precedence

  • Explicit rules take precedence over inherited rules

  • ACL rules can be defined at table, field, and record levels

Q39. what is the different between =, ==, ===?

Ans.

The different between =, ==, === is related to assignment, equality, and strict equality in programming.

  • = is used for assignment in programming languages.

  • == is used for equality comparison, it checks if two values are equal.

  • === is used for strict equality comparison, it checks if two values are equal in both value and data type.

Q40. Difference between an asset and CI

Ans.

An asset is a physical or virtual item that has financial value, while a CI is any item that needs to be managed for IT purposes.

  • Assets are typically tangible items, such as hardware or software licenses, that have a monetary value.

  • CIs are any items that need to be managed for IT purposes, such as servers, applications, or network devices.

  • Assets are often tracked in financial systems, while CIs are tracked in IT service management systems.

  • An asset can be a CI, but not all CIs...read more

Q41. What is a schedule report

Ans.

A scheduled report is a report that is automatically generated and sent at a specified time and frequency.

  • Scheduled reports can be set up to run daily, weekly, monthly, or at a custom interval.

  • They can be sent via email or saved to a specific location.

  • Scheduled reports can be used to provide regular updates on key metrics or to automate repetitive reporting tasks.

Q42. What is a private function in script include ?

Ans.

Private functions in script include are only accessible within the script include itself.

  • Private functions are defined using the 'private' keyword.

  • They are used for encapsulation and to hide implementation details.

  • Private functions cannot be called from outside the script include.

  • Example: private function calculateTotal() { // implementation }

Q43. Difference between client side script and server side script.

Ans.

Client side scripts run on the user's browser, while server side scripts run on the server.

  • Client side scripts are executed on the user's browser, providing immediate feedback without needing to communicate with the server.

  • Server side scripts are executed on the server, allowing for secure processing of sensitive data and operations.

  • Client side scripts are written in languages like JavaScript, while server side scripts are written in languages like Java or Python.

Q44. Can we use current.update() in BR?

Ans.

No, current.update() cannot be used in Business Rules (BR).

  • current.update() is not supported in Business Rules as it can lead to infinite loops.

  • Use current.setValue() or current.setAbortAction(true) instead in Business Rules.

  • Example: current.setValue('state', 2);

Q45. What is ServiceNow ITSM

Ans.

ServiceNow ITSM is a cloud-based IT service management platform that helps organizations manage their IT services efficiently.

  • ServiceNow ITSM includes modules for incident management, problem management, change management, and more.

  • It allows organizations to automate and streamline their IT service delivery processes.

  • ServiceNow ITSM provides a centralized platform for IT teams to collaborate, communicate, and track service requests.

  • It offers reporting and analytics capabiliti...read more

Q46. Send email notifications to assigned to of change request as soon as planned end date is crossed.

Ans.

Use business rules to trigger email notifications to assigned to when planned end date is crossed.

  • Create a business rule on the Change Request table

  • Set the condition to check if planned end date is crossed

  • Use script to send email notification to assigned to

Q47. How to fetch backend values in servicenow

Ans.

Use GlideRecord to fetch backend values in ServiceNow

  • Use GlideRecord to query records from tables in ServiceNow

  • Use filters and conditions to fetch specific records

  • Access fields and values from the fetched records

Q48. How many types of sorting and searching?

Ans.

There are two types of sorting - ascending and descending. There are various types of searching like linear search, binary search, etc.

  • Sorting: Ascending, Descending

  • Searching: Linear search, Binary search, Hashing, etc.

Q49. How to add approval in flow designers.

Ans.

To add approval in flow designers, use the 'Approval' activity and configure the approval settings.

  • Drag and drop the 'Approval' activity onto the flow designer canvas

  • Configure the approval settings such as approvers, conditions, and notifications

  • Connect the 'Approval' activity to the relevant steps in the flow

  • Test the flow to ensure the approval process works correctly

Q50. difference between subject to and opened for ?

Ans.

Subject to refers to the person or entity affected by an incident, while opened for refers to the person or entity responsible for resolving the incident.

  • Subject to is the entity that is impacted by an incident, such as a user or a department.

  • Opened for is the entity responsible for resolving the incident, such as a support team or an individual.

  • For example, a ticket may be subject to a specific department but opened for the IT support team.

1
2
3
Next
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

3.7
 • 10k Interviews
3.9
 • 7.8k Interviews
3.7
 • 7.3k Interviews
3.8
 • 5.4k Interviews
3.7
 • 5.2k Interviews
3.8
 • 4.6k Interviews
3.8
 • 2.8k Interviews
3.6
 • 2.3k Interviews
3.7
 • 791 Interviews
3.8
 • 286 Interviews
View all

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

Servicenow Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter