ServiceNow Interview Questions and Answers – User Shared Q&A (Set 2)

vinay kumar 2023-04-07 11:51:12
execution order of Acl in ServiceNow ? and Read ,write, delete, create which one excute first ?

Robert 2023-04-13 06:55:22
Hi Vinay, If user don't have READ access then providing WRITE, DELETE or CREATE access doesn't make any sense so I believe, READ ACL should be executing first which will make sure to not evaluate further ACL if user does not pass READ access.
1 Helpfuls
Dhruv 2024-03-13 22:54:37
Execution order is always : Role >> Condition >> Script
0 Helpfuls
Aurobinda Behera 2025-02-28 15:50:22
Create --> read --> write --> delete
0 Helpfuls
2 Helpfuls


vinay 2023-04-07 11:55:10
how to create change request approval policy in servicenow

Shraddha 2023-04-21 06:21:56
Hey Vinay, There is "Change Approval Policies" module in change management where we can create these policies. It is a course of action that can be applied to a change request. It uses a set of variable inputs to evaluate the decisions that are associated with it. For each matching decision, the associated approval definition is applied. More info can be found here : https://docs.servicenow.com/en-US/bundle/utah-it-service-management/page/product/change-management/concept/change-approval-policy.html I was also asked similar question recently so I read and understood about it.
1 Helpfuls
0 Helpfuls


Satyapriya Biswal 2023-04-10 17:41:07
What is the code to execute a scheduled job from a serverside script?

Vardha 2023-04-11 00:41:02
scheduled job is used for server side scripting on a scheduled basis. You do not need to trigger it via some other script. Can you please elaborate what you are trying to achieve here?
0 Helpfuls
Satyapriya Biswal 2023-04-11 03:06:00
Can you please tell me What is the use of Ondemand scheduled job?
0 Helpfuls
Raj 2023-04-11 05:19:55
Hi Satyapriya, Scheduled job can be executed by using gs.executeNow method in server side script, we need to pass scheduled job glide object as parameter as shown below : var grSchedJob = new GlideRecord('sysauto_script'); if(grSchedJob.get('SCHEDULUD_JOB_SYS_ID_HERE')){ gs.executeNow(grSchedJob); } More info can be found on 'https://www.servicenow.com/community/developer- forum/what-is-the-sys-id-gs-executenow-is-returning/m-p/1577551/page/3' Note : The above script can be found on 'Execute Now' UI action which is available on scheduled job form.
1 Helpfuls
Satyapriya Biswal 2023-04-11 05:41:40
Thanks Raj
0 Helpfuls
1 Helpfuls


Anoynymous 2023-04-17 01:47:29
What if we have before query BR which is filtering data to show only active incidents. what will happen if we use the fix script on the incident(via glideRecord) will it show all the records in the present in the incident table if no addQuery is used?

Anubhav 2023-04-17 21:56:16
If before query BR is adding filter to show only active incidents and if we try to GlideRecord on incident table then it will return only active incidents. Before query BR executes every time action is performed on database, it doesn't matter if database action is performed via UI or via script.
3 Helpfuls
2 Helpfuls


Sanjay 2023-04-21 09:26:15
When user is trying to submit a P1 INC, display a confirmation message that "you are trying to submit Critical incident (P1), would you like to proceed?" it should display yes or no options, if user selects Yes then proceed with the incident submission, if user selects No then stop the form submission to the database

Renu 2023-04-24 06:53:36
You can write on Submit Client Script with below line of code : var incPriority=g_form.getValue("priority"); if(incPriority==1){ var userInput=confirm("you are trying to submit Critical incident (P1), would you like to proceed?"); if(userInput==false)//user selected no return false; } } return true;
2 Helpfuls
0 Helpfuls


SP Biswal 2023-04-24 20:08:01
What is the use of allow digest checkbox in notification

Aarav 2023-05-04 21:47:48
With digest functionality end user has option to subscribe for digest notification so that he receives single consolidated notification for certain time period. e.g. Let's say we have "Incident Commented" notification which triggers every time comment is added into incident. If end user subscribes to receive it for 1 day interval then instead of receiving notification for each comment on Incident, he will receive single consolidated digest email for a day.
1 Helpfuls
0 Helpfuls


kiran 2023-04-28 09:09:28
How to trouble shoot if user is not able to login?

Pratiksha 2023-05-04 22:08:16
There could be different reasons why user is not able to login but most common is wrong password or user doesn't exist in ServiceNow. Therefore, we can troubleshoot issue by following below steps 1. Verify if user exist in ServiceNow User(sys_user) table. 2. Try resetting user password.
0 Helpfuls
Astik 2023-12-09 14:23:15
If user is not able to login please check below things 1.User is active 2.user id is not empty 3.Most Important - User is not locked out
1 Helpfuls
0 Helpfuls


kiran 2023-04-28 09:15:39
how to call mail script ?

Lavanya 2023-04-28 11:12:46
Simillar question already exist above, but anyway users will know that this question is being asked in an interview. Mail script can be called by using below script : ${mail_script:mail_script_name}
0 Helpfuls
1 Helpfuls


Amit 2023-05-05 22:05:42
How we can achieve this scenario If approval is triggered to requester's manager and if he does not approve for 3 days then it should pass to manager's manager

Rahul 2023-05-22 01:57:17
We can achieve this via workflow. While triggering approval to requester's manager, parallelly we can trigger timer activity for 3 days, preceded by approval to requester's manager manager. If requester's manager approves within 3 days then end the workflow. If requester manager doesn't approve within 3 days then timer activity will complete and then another approval to requester's manager manager will trigger.
1 Helpfuls
Kanika 2023-06-14 03:11:50
If approval is triggered to requester's manager and if he does not approve for 3 days then it should pass to manager's manager I need to do it using flow designer, then how can this be achived?
0 Helpfuls
Gagandeep 2023-10-11 23:31:46
Hi, We can achieve the above task by using flow designer by using approval action in it and setting the Wait For Condition of 3 days for Manager to approve it and then in case of not approved it will be assigned to Manger's Manager
0 Helpfuls
0 Helpfuls


annin 2023-05-09 05:03:18
Hi I have asked a question when the incident state is closed related problem state should also be closed How can we do this

Gaurav 2023-05-10 06:38:33
We can write After BR as below to achieve this requirement: Table : Incident BR Condition : When state changes to Closed var grProblem=new GlideRecord("problem"); if(grProblem.get(current.problem_id)){ grProblem.setValue("state",3);//3 is closed state back end value grProblem.update(); } Tip : Interviewer later asks why After BR, why not before BR or Asynch BR? short and simple answer is, if we are updating other than current record then we are supposed to use after BR. If script is too lengthy and execution time is high then we can go with Asynch BR (which runs in backend so that user don't have to wait till BR executes)
0 Helpfuls
0 Helpfuls






Fuel My Passion

Loving the content? Well, of course you are. Here’s your chance to indirectly fuel the chaos that keeps this website running. Your contribution helps keep the wheels turning and allows me to continue pretending to be a responsible adult—while cranking out more content for you. Thanks for supporting my delusional dreams and helping me keep this website alive!


Buy Me a Coffee

Support with UPI

If you prefer making a UPI payment to support the website maintenance cost, scan the QR code below:

UPI QR Code

Comments