[Article :- 6] ServicNow Interview Questions for Preparations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
4 weeks ago - last edited 3 weeks ago
Hi All,
I recently attended interviews at a few companies. I’ve shared my experience, along with the question patterns and suggested answers. I hope those who are currently seeking a job can use this information for preparation and gain useful insights into the interview patterns.
1. Difference Between Fix script & Background script.
->
| Purpose | Fix script | Background Script |
| Record Stroage | Fix script is capture in Update sets and saved in System. | Background Script is not capture in Update set and not saved in System. |
| Scope | It can execute all application Scope. | It can not execute all application scope. |
| Execution | When it run we can do other action during time span. Not require to wait untill finish the execution. | When it run we can not do other action during time span.Require to wait untill finish the execution. |
| Purpose | Used for data integity fix during application install/upgrade or deployment | Used for adhoc testing, data updates and debugging in an instance. |
| Execution track | Script execution monitered and running script can be killed. | Script execution can n't monitered and running script can not be killed. |
| Sandbox Mode | No Sandbox mode available for Fix script. | Background Script can execute Sandbox mode. |
2. Is coalesce case sensitive in Transform map?
-> Yes, Coalesce is case sensitive but by default no in Transform map. It won't be work if case is not match correctly. To make coalesce case sensitive enable the check box "Coalesce Case Sensitive".
Get more details : https://www.servicenow.com/community/itsm-forum/case-sensitive-coalesce-field-values/td-p/541758
3. What is Protection Policy ?
-> The Protection Policy is used to safeguard backend configurations and script logic from being edited. It makes configurations and customizations read-only or protected within the system.
For scripts such as Business Rules, Script Includes, Client Scripts, UI Policies, and Data Policies, Application Files, UI Builder , Flow designer action, Scripted REST API. There is a field called Protection Policy and this field can be set to Read-only, Protected, or left Empty.
We can apply protection policy for on custom script as well.
Follow Links : https://www.servicenow.com/community/itsm-forum/how-to-set-a-protection-policy-on-custom-script-incl...
https://www.servicenow.com/community/developer-forum/protection-policy-for-script-include/m-p/191775...
4. Any idea about multitenant instance (Domain Separation) in ServiceNow ?
->
With domain separation you can separate data, processes, and administrative tasks into logically defined domains.
Domain separation is best for those customers who:
- Need to enforce absolute data segregation between business entities (data separation).
- Customize business process definitions and user interfaces for each domain (delegated administration).
- Maintain some global processes and global reporting in a single instance.
- Separate data between service providers, customers, partners, or sub-organizations.
A domain hierarchy is a structure of domains within an instance.
Domain Hierarchy – > Establish the Parent/child relationship between domainsSystem policy functions can be defined globally or specifically for a particular domain. The layouts of forms, lists, related lists, and choice lists can also be domain-specific.
MSP (Manage Service Provides) how Single ServiceNow instance used for multiple customers.
5. Is there any restriction about adding actions in Flow designer ?
6. Can we add multiple coalesce for transform map ? What will happen if one of coalesce match and remaining are not match ?
7. In Incident form want to restrict 4 fields for "Help Desk" group's member. How can we achieve ? How many ACL need to implement to achieve this requirement ?
8. What is Access Analyzer ? How to use it ?
9. How to debug Client Side and Server side script in ServiceNow Instance ?
10. Have you used pushed Notification ?
11. In notification email template and Subject line both are added. How notification Subject line will work either from Email template or Notification Subject ?
12. Can we call system property from Client Side ? If yes what will approach ?
-> Yes, we can call "system property" from client side script via "display business Rule" or "Glide Ajax" call.
13.How to restrict recipients count in email notifications ?
-> By changing System Property.
14. How to troubleshoot if notification not sent for the users ?
-> To troubleshoot the issue, first check the following:
a. Ensure that email sending properties are enabled.
b. Verify whether the notification triggering conditions are met.
c. Review the notification email logs.
d. Confirm that the user’s notification preferences are enabled.
e. Make sure the user is active.
15. Have you worked on UI Builder ?
16. Difference b/w next(), has next() ?
17. How to call "g_scratchpad" object for Display BR and On load Client() script ?
18. In User criteria you have "Location", "Group", "Roles", "Company", and Advance Script also. How will it work if Match all is check or uncheck ?
19. What is Deny unless & Allow if in ACL ?
20. What is execution order of "Query Business rule " and "ACL" ?
Script Questions :
1. Write a script to fetch count of P1 incidents for last 6 months.
2. Reverse the given string by implementing your own logic rather than using any built-in functions.
For example:
If str = "abira", then the reversed string should be revStr = "ariba".
3. Sort the array without using inbuilt function.
arr = [34, 90, 76, 12, 6, 20]
4.Write a script that calculates the date difference between the current date and the date of birth (DOB). If the age is more than 25 years, it should display the message: “You are eligible for a Driving License”; otherwise, it should display “Not eligible.”
5. Write a script to find unique elements from an array.
arr = [7, 90,34, 7, 340, 3, 90]
uniqueArr = [7, 90, 34, 340, 3]
6. Write a script that automatically closes the parent HR case once all its child HR tasks are closed.
7. How to parse the below JSON ?
var obj = {
"firstName" : "Abira" ,
"lastName" : "Kumari",
"address" : "WB",
"skill":
{
"primary":" ServiceNow",
"secondary": "Salesforce"
},
};
Integrations Questions :
1. Have you used authentication in REST integration ? If yes what is difference b/w Basic Oauth and Oauth 2.0 ?
2. Difference b/w PUT and PATCH method.
3. Have you built any scripted REST API ? If yes explain the scenario.
4. Suppose data is being imported from Excel into a target table in ServiceNow. If the User ID field is empty in the Excel file, the record should not be inserted into the ServiceNow target table.
How can this be implemented?
5. What would be your approach if an integration fails?
6. In terms of ServiceNow integrations, who acts as the OAuth provider in both inbound and outbound scenarios?
7. Difference b/w access token and Refresh token ? If refresh token expire how integration will work ?
8. Is there any way to increase the life span of Access token and Refresh token ?
9. Difference b/w JSON.parse() and JSON.stringify().
ServiceNow Upgrade Project :
Could you please explain how we can set up a ServiceNow upgrade plan?
Follow Links : https://www.servicenow.com/community/servicenow-ai-platform-forum/the-ultimate-guide-to-upgrading-yo...
https://www.servicenow.com/docs/r/xanadu/release-notes/upgrade.html
Production Deployment:
How can we manage update set deployment in both PROD and non-PROD instances?
Please mark helpful and correct answer if it's worthy for you.
