0% found this document useful (0 votes)
10 views18 pages

SNOW Interview Questions - Scripting

This document is a comprehensive guide designed to help candidates prepare for ServiceNow scripting interviews by providing real interview questions and practical answers. It covers various topics such as GlideRecord fundamentals, Access Control Lists (ACLs), Business Rules, and Service Level Agreements (SLAs), along with example scripts and explanations. The handbook aims to boost confidence and readiness for interviews by focusing on practical scenarios rather than theoretical content.

Uploaded by

Bharath R
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views18 pages

SNOW Interview Questions - Scripting

This document is a comprehensive guide designed to help candidates prepare for ServiceNow scripting interviews by providing real interview questions and practical answers. It covers various topics such as GlideRecord fundamentals, Access Control Lists (ACLs), Business Rules, and Service Level Agreements (SLAs), along with example scripts and explanations. The handbook aims to boost confidence and readiness for interviews by focusing on practical scenarios rather than theoretical content.

Uploaded by

Bharath R
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

1|Page

ServiceNow
Scripting Interview
Questions–
EY | Wipro |
Tech Mahindra

Real Interview Questions. Practical Answers. Trusted


Patterns

By Team HackNow — Practitioner-Led | Interview-


Ready

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


2|Page

This handbook is built for one clear purpose: helping you


crack ServiceNow scripting interviews with confidence.

Every question in this ebook is taken directly from real interview


discussions and practical scripting scenarios. There is no filler
content, no unnecessary theory, and no marketing noise.

Think of this as the document you revise:


• The night before your interview
• While commuting to the interview
• Minutes before joining the interview call

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


3|Page

[Link]: Fetch the Last 3 Recently


Updated Incidents

Purpose of this question

Interviewers ask this to evaluate your GlideRecord


fundamentals, query optimization, and
performance awareness.

Answer

var incidentArr = [];


var gr = new GlideRecord('incident');
[Link]('sys_updated_on');
[Link](3);
[Link]();

while ([Link]()) {
[Link]([Link]('number'));
}
[Link]("Last 3 updated incidents: " +
[Link](', '));

Use code with caution.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


4|Page

[Link] is an Access Control List (ACL)?

Purpose of this question

This tests your understanding of ServiceNow security


and governance.

Answer

An ACL (Access Control List) is a security rule that


controls:

• Who can access data (roles, users, groups)


• What operations are allowed (Create, Read,
Update, Delete)
• Which objects are protected (tables or fields)

ACLs ensure data security and controlled access


across the platform.

Book a One-on-One Call: Facing challenges with ServiceNow administration, scripting,


integrations, or real-world use cases? Book a one-on-one call for expert guidance on
streamlining administration, mastering scripting, seamless integrations, and solving
scenario-based challenges. Click here to schedule!

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


5|Page

[Link] between .none and .* ACLs

Purpose of this question

To evaluate your understanding of table-level vs field-


level security.

Answer

• [Link] → Controls access to the entire


table. Without this, users cannot see records.

• Table.* → A wildcard ACL that applies to all


fields in the table.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


6|Page

[Link] are Retroactive Start and


Retroactive Pause in SLA?

Purpose of this question


To assess your real-world SLA calculation
knowledge.

Answer
• Retroactive Start
When enabled, the SLA start time is calculated from
a date/time field on the record (such as Created or
Opened) instead of when the SLA condition was met.

• Retroactive Pause
Ensures that time spent in a paused state (for
example, Awaiting Vendor) before the SLA was
attached is correctly included or excluded in SLA
calculations.
These settings ensure accurate SLA
measurement.

Book a One-on-One Call: Facing challenges with ServiceNow administration, scripting,


integrations, or real-world use cases? Book a one-on-one call for expert guidance on
streamlining administration, mastering scripting, seamless integrations, and solving
scenario-based challenges. Click here to schedule!

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


7|Page

[Link] do you restrict write access to three


fields for a specific group?

Purpose of this question

To test field-level ACL implementation skills.

Answer

The correct approach is field-level ACL


implementation:
• Create a role (example: field_restricted_role)
and assign it to the target group
• Create write ACLs for each field:
o Type: record
o Operation: write
o Name: incident.<field_name>
• Under Requires Role, add
field_restricted_role
• Verify that no generic ACLs (such as incident.* )
override the restriction
This provides granular and secure field-level
control.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


8|Page

[Link] are the types of Business Rules


and how do they execute?

Purpose of this question

To test understanding of execution timing and


system impact.

Answer

A Business Rule is a server-side script that runs


when a record is displayed, inserted, updated, or
deleted.
Types include:
• Before – Runs before the database operation; used
for validation or data modification
• After – Runs after the database operation; used to
update related records
• Async – Runs in the background; best for
integrations or long-running tasks
• Display – Runs when the form loads and uses
g_scratchpad
Choosing the correct type is critical for performance
and system stability.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


9|Page

[Link] is a Service Level Agreement


(SLA)?
Purpose of this question
To check ITSM and service delivery fundamentals.

Answer

An SLA (Service Level Agreement) defines the time


commitment within which a service must be delivered.

Configuration includes:
• Target (Response or Resolution)
• Table
• Duration
• Conditions (Start, Pause, Stop, Reset)
SLAs are created under Service Level Management
> SLA Definitions.

Book a One-on-One Call: Facing challenges with ServiceNow administration, scripting,


integrations, or real-world use cases? Book a one-on-one call for expert guidance on
streamlining administration, mastering scripting, seamless integrations, and solving
scenario-based challenges. Click here to schedule!

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


10 | P a g e

[Link] is GlideAjax? Explain with a real-


time example

Purpose of this question

To evaluate client-server communication skills.

Answer

GlideAjax is used to call server-side Script Includes


from client-side scripts asynchronously.

Real-time example:

When the Caller field changes on an Incident form, a


Client Script sends the Caller SysID to a Script
Include. The Script Include queries the sys_user table
and returns Department and Manager details
without refreshing the page.

This ensures secure and efficient client-server


communication.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


11 | P a g e

[Link]: Create a Problem record from


a P1 resolved Incident

Purpose of this question

To test automation logic and record relationships.

Answer
The correct approach is:
• Use an After Update Business Rule on the
Incident table
• Condition: State = Resolved AND Priority = 1
(Critical)
• Script logic:
o Initialize GlideRecord('problem')
o Map fields such as short_description,
description, and company
o Set first_reported_by_task to the Incident
SysID
o Call insert() and log the new Problem
number
This demonstrates automation logic and record
relationships.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


12 | P a g e

10. How do you prevent Business Rules


and Workflows from executing?

Purpose of this question

To test control over platform automation.

Answer

Use setWorkflow(false) on the GlideRecord object.


This prevents:
• Business Rules
• Workflows
• Engines
from executing during that specific database operation.
It must be used carefully, as it intentionally bypasses
automation.

Book a One-on-One Call: Facing challenges with ServiceNow administration, scripting,


integrations, or real-world use cases? Book a one-on-one call for expert guidance on
streamlining administration, mastering scripting, seamless integrations, and solving
scenario-based challenges. Click here to schedule!

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


13 | P a g e

11. Can we use [Link]() in an


After Business Rule?

Purpose of this question

This is a classic interview trap.

Answer

No, it should be avoided.

Using [Link]() in an After Update


Business Rule triggers the same rule again, causing a
recursive loop that can crash the node.

If updates are required, use a Before Business Rule,


where changes are saved automatically without calling
update().

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


14 | P a g e

ADDITIONAL RESOURCES
SEASON 1: SCRIPTING SERIES
Part_1: [Link]
Part_2: [Link]
Part_3: [Link]
Part_4: [Link]
Part_5: [Link]
Part_6: [Link]
Part_7: [Link]
Part_8: [Link]
Part_9: [Link]
Part_10: [Link]
Part_11: [Link]
Part_12: [Link]
Part_13: [Link]
Part_14: [Link]
Part_15: [Link]
Part_16: [Link]
Part_17: [Link]
Part_18: [Link]
Part_19: [Link]
Part_20: [Link]

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


15 | P a g e

SEASON 2: SCRIPTING SERIES


Part_1: [Link]
Part_2: [Link]
Part_3: [Link]
Part_4: [Link]
Part_5: [Link]
Part_6: [Link]
Part_7: [Link]
Part_8: [Link]
Part_9: [Link]
Part_10: [Link]
Part_11: [Link]
Part_12: [Link]
Part_13: [Link]
Part_14: [Link]
Part_15: [Link]
Part_16: [Link]
Part_17: [Link]
Part_18: [Link]
Part_19: [Link]
Part_20: [Link]

Need Help? Join Our WhatsApp Community — Struggling with ServiceNow administration,
scripting, integrations, or real-world use cases? Don’t worry! Get real-time support, tips,
and advice from experts and peers on the same journey. You’re not alone—we’re here to help
you succeed!

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


16 | P a g e

SEASON 3: SCRIPTING SERIES


Part_1: [Link]
Part_2: [Link]
Part_3: [Link]
Part_4: [Link]
Part_5: [Link]
Part_6: [Link]
Part_7: [Link]
Part_8: [Link]
Part_9: [Link]
Part_10: [Link]
Part_11: [Link]
Part_12: [Link]
Part_13: [Link]
Part_14: [Link]
Part_15: [Link]
Part_16: [Link]

Integration Series
SOAP GUIDE: [Link]
Integration eBook: [Link]

Book a One-on-One Call: Facing challenges with ServiceNow administration, scripting,


integrations, or real-world use cases? Book a one-on-one call for expert guidance on
streamlining administration, mastering scripting, seamless integrations, and solving
scenario-based challenges. Click here to schedule!

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


17 | P a g e

Interview anxiety isn’t a skill gap; it’s a


preparation gap — and ServiceNow
deserves better.
If you’ve ever walked out of a ServiceNow interview replaying every answer in your
head, wondering “I knew this… why couldn’t I explain it better?” — you are not alone.
Interview pressure doesn’t reflect your potential; it reflects a system that rarely
prepares candidates for real conversations.

At HackNow, we deeply understand this emotional gap. You’ve invested time


learning ServiceNow. You’ve practiced concepts. Yet when interviewers push into
scenarios, edge cases, or real-world expectations, confidence can slip. That’s not a lack
of skill — it’s a lack of structured, realistic preparation.

Our mission is simple: transform your readiness from “pretty good” to “absolutely
unforgettable.” Not through shortcuts or memorized answers, but through guided
clarity, emotional confidence, and real-world exposure that mirrors how hiring
decisions are actually made.

What makes HackNow different:


• Mock Interviews—Tailored for ServiceNow superstars (yes, that’s
you!)

• Real-world scenario and battle-tested questions that separate pros


from pretenders

• Rockstar resume and LinkedIn glow-up you can brag about

• Core concepts and project Walk-throughs loaded with “aha!”


moments

• UNLIMITED interview calls with top companies—no secret code


required

Don’t dream it. DO IT. The next ServiceNow superstar


could be you.

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]


18 | P a g e

©HackNow Call/WhatsApp: +91 8984988593 Visit Us: [Link]

You might also like