ServiceNow Interview Questions and Answers – User Shared Q&A (Set 8)
ksr 2023-09-13 22:18:38
how to handle errors in restapi?
Pranav 2023-10-31 09:54:42
You can handle errors based on response status code. You get status code in series 400 if there is any error
e.g.
1. 402 is error code for incorrect user details
2. 404 is either the URL you have configured doesn't exist at all, or the resource you are trying to access doesn't exist.
0 Helpfuls
Mustafeez 2024-01-12 14:47:59
There's also ERROR 401. It's for Basic authorization error.
0 Helpfuls
1 Helpfuls
Varad Bhagwat 2023-09-17 01:02:13
What is Blackout and Maintenance window in change management?
Kapil Don 2023-09-26 05:10:08
Blackout windows specify times during which normal change activity should not be scheduled. Maintenance windows specify times during which change requests should be scheduled.
0 Helpfuls
1 Helpfuls
Jatin Sehgal 2023-09-18 05:59:50
If there are 5 ACLs and 4 are denying access and 1 is granting access. Will the user be granted access or not?
Anubhav 2023-09-26 11:57:12
Yes, user will be granted access.
0 Helpfuls
2 Helpfuls
Rohit 2023-09-20 11:39:25
The interviewer asked if we need Email in the email field when user field is filled it automatically populated in the INC form. So, I said we can achieve by the client script we use getrefrence field (Sys_ID) he needs more info so please answer it
Laxmi 2023-10-26 19:29:20
Ypu can use below script:
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//if(newValue != ''){
var caller = g_form.getReference('caller_id');
g_form.setValue('u_email', caller.email);
//}
}
0 Helpfuls
Pratiksha Langde 2023-10-27 10:24:51
getReference is not the best practice to get data from server side to client side. we should be using GlideAjax to fetch data from server side to client side.
if you want to use getReference then you can use this code using on change client script :
unction onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
//Type appropriate comment here, and begin script below
var user = g_form.getreference('requested_for', function(user) {// map the correct field
g_form.setValue('u_email', user.email.toString());// map the correct field
});
}
if you want to auto-populate the email id based on logged-in user the please line in the default value of the email id field :
javascript: gs.getuser().getRecord().getValue('email);
Using GlideAjax :
Create a new client callable script include with following function
var UserDetails = Class.create();
UserDetails.prototype = Object.extendsObject(global.AbstractAjaxProcessor, {
getUserInfo: function() {
var details = {};
var userId = this.getParameter('sysparm_user_id');
var userObj = new GlideRecord('sys_user');
userObj.addQuery('sys_id', userId);
userObj.query();
if (userObj.next()) {
details.email= userObj.email_id.toString();
}
return JSON.stringify(details);
},
type: 'UserDetails'
});
Create a new catalog client script on the record producer/request form
function onChange(control, oldValue, newValue, isLoading) {
if (isLoading || newValue == '') {
return;
}
var ajax = new GlideAjax('UserDetails');
ajax.addParam('sysparm_name', 'getUserInfo');
ajax.addParam('sysparm_user_id', g_form.getValue('employee_name')); // change variable name here
ajax.getXML(doSomething);
function doSomething(response) {
var answer = response.responseXML.documentElement.getAttribute("answer");
var answers = JSON.parse(answer);
g_form.setValue('var_email_id', answers.email.toString()); // change variable name here
}
}
2 Helpfuls
Rohit 2023-11-16 05:27:34
Do we need an additional field of 'Email' to auto-populate the email address of user?
0 Helpfuls
Tanya 2023-11-28 05:19:31
no
0 Helpfuls
Soumaya 2023-11-28 11:41:35
If you would like to show email address of user on incident form then we can dot walk to user reference field and bring email field on task form. This way, we don't need to write any script to populate email address when user is changed.
1 Helpfuls
0 Helpfuls
Rohit 2023-09-21 00:21:19
The interviewer asked me How to restrict the location in the service catalog by the locations based clients in ServiceNow
Vaishnavi 2023-09-30 00:06:03
We can use reference qualifier to restrict certain locations based on users location.
0 Helpfuls
Manimegala 2024-04-08 07:22:07
In order to restrict for specific location, We can create usercriteria which will have location as mentioned under 'Not Available For' tab in service catalog
0 Helpfuls
0 Helpfuls
Satyapriya Biswal 2023-09-21 03:19:25
What are major incidents? Is all P1 incidents are major incidents?
Baxter 2023-11-02 08:29:45
I believe Major Incidents have their own separate work flows and notifications outside of standard incident management.
With most incidents of any priority, the incident management team is usually equipped to find a solution and additional approval is usually not required. Even P1 incidents go throught the same workflow of a P2 or P3 incident.
Major incidents involve notifications that get sent outside of the incident management team and have unique workflows that are more complex or require further approval in order to resolve the issue.
I'm sure other poeple can describe this better, but in short, Major Incident Management is its own separate entity.
1 Helpfuls
0 Helpfuls
Atharva Chavan 2023-09-23 07:15:58
Use of Jelly Script with an example
2 Helpfuls
Kapil 2023-09-26 12:01:34
flow designer vs workflow 5 points, which will be used and when?
Renu 2024-04-05 04:40:53
IF we have complex logic which requires lot of scripting then we should go with Workflow, in all other cases we can go with Flow Designer.
0 Helpfuls
Astik Thombare 2024-10-13 22:03:40
Feature/Aspect
Flow Designer
Workflow
Trigger Types
Multiple trigger types like Scheduled, Application, and Record triggers.
Triggers on Record creation or when specific conditions are met.
Integration Capabilities
Provides numerous spokes for integrating ServiceNow with external systems using Integration Hub with low code.
No built-in support for Integration Hub or easy external system integration.
Rollback Feature
No rollback action available.
Includes a rollback activity to revert to an earlier activity in the workflow.
Scripting
Limited scripting capabilities; cannot easily handle complex scripting.
Supports complex scripting with the ability to use the current object for dot-walking.
SLA Timer Support
Cannot be used for requirements related to SLA timers.
Can be used for SLA timer-related requirements.
0 Helpfuls
0 Helpfuls
Varad Bhagwat 2023-09-26 12:02:52
I have asked scenario where If OOB ServiceNow Incident management application is installed and you need to configure it for end users so what configuration you should required to do?
Vamsi 2023-10-05 12:11:56
When configuring the out-of-the-box (OOB) ServiceNow Incident Management application for end users, there are several key configurations you should consider to ensure it meets your organization's needs. Here are the essential configuration steps:
User Roles and Permissions:
Define and assign appropriate roles to end users, such as "Incident Caller" or "End User." These roles should have the necessary permissions to create, view, and update incidents.
Service Catalog Configuration:
If incidents can be reported through a service catalog, configure catalog items for incident creation. Define the variables and information you want end users to provide when reporting incidents.
Incident Categories and Subcategories:
Set up incident categories and subcategories to classify incidents effectively. This helps in routing incidents to the correct assignment groups and analyzing incident data.
Assignment Groups:
Define assignment groups responsible for handling different types of incidents. Configure automatic assignment rules based on incident category, subcategory, or other criteria to ensure incidents are routed to the appropriate teams.
Service Level Agreements (SLAs):
Set up SLAs to define response and resolution time targets for incidents. Associate SLAs with incident categories or priorities to ensure that incidents are prioritized correctly.
Incident States and Workflow:
Configure incident states and workflows to match your organization's incident management process. Define the stages an incident goes through from creation to closure and customize the workflow to meet your needs.
Notifications and Email Templates:
Configure notification rules to keep end users informed about the progress of their incidents. Create and customize email templates for incident notifications to ensure clear communication.
Knowledge Base Integration:
Integrate the incident management application with the knowledge base to provide end users with access to self-service solutions and knowledge articles that can help them resolve common issues.
Incident Numbering and Prefixes:
Customize incident numbering and prefixes to align with your organization's numbering conventions and to make it easier to identify and track incidents.
Incident Templates:
Create incident templates to simplify the incident reporting process for end users. These templates can pre-fill incident fields with common information.
Client Scripts and UI Policies:
Implement client scripts and UI policies to enhance the user experience by adding client-side validation and dynamic behavior to incident forms.
Service Portal Configuration (Optional):
If you're using ServiceNow's Service Portal, configure incident-related widgets and forms to provide an intuitive and user-friendly interface for end users.
Access Control Lists (ACLs):
Define ACLs to control access to incident records and ensure data security and privacy.
Reporting and Dashboards:
Set up incident-related reports and dashboards to provide end users with visibility into incident trends and performance metrics.
Testing and Training:
Thoroughly test the configuration to ensure it meets end-user needs and aligns with your incident management processes. Provide training to end users on how to use the system effectively.
Documentation:
Create user guides and documentation to help end users navigate the incident management application and understand their roles and responsibilities.
1 Helpfuls
Varad Bhagwat 2023-10-17 21:45:12
Thanks Vamsi for such brief explaination
0 Helpfuls
0 Helpfuls
Venkatesh 2023-10-13 02:23:00
What is Difference Between Business Elasaped time and Actual Elapsed Time?
Basavaraj 2023-11-02 23:51:40
Actual elapsed values are calculated on a 24x7 basis.
Business elapsed values are calculated based on the schedule specified in the task SLA. The schedule is taken from the SLA definition by default.
0 Helpfuls
2023-12-09 10:34:31
Actual elapsed time is the total time the SLA has taken from the time SLA start until the SLA completed.
Business elapsed time is the total time which is calculated as per Schedule type (Give in SLA form for e.g., 2 business days by 4 pm) and as per time zone. To analyze the exact SLA timing condition, we always see Business elapsed time.
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: