Tag: best-practices
16 results
-
Communicating Changes to Your Users (& Setting Default User Preferences in ServiceNow)
Strategies for communicating platform changes to your end users, plus how to set default user preferences in ServiceNow.
-
5 Ways to Check your ServiceNow Instance for DANGEROUS CODE in Less Than 5 minutes
Five quick checks to find dangerous code hiding in your ServiceNow instance - from recursive business rules to script-injected ACLs.
-
5 Lessons About Programming From Richard Feynman
Five lessons about software development drawn from the life and philosophy of Richard Feynman - applicable to ServiceNow and beyond.
-
Managing Instance-Specific System Properties for Dev/Test/Prod in ServiceNow
A smarter way to manage instance-specific System Properties across Dev/Test/Prod without losing values during clones or promotions.
-
ServiceNow Developers: BE THE GUIDE!
When your client asks for a bad-practice solution, don't just say no. Guide them to a better approach instead.
-
Use Automated Tests to Validate "Guided Setup" Completion & Functionality.
Use ATF tests as a final Guided Setup step to validate that your ServiceNow application is properly configured after installation.
-
Can ServiceNow Script Includes Use the "current" Variable?
Yes, Script Includes can access the "current" variable - but the real question is whether they should. Here's how it works and when to avoid it.
-
If a Genie Gave Me Three Wishes, I'd Use Them All to "Fix" Scope
A candid rant about the pain points of Application Scope in ServiceNow, and three specific improvements that would fix it.
-
Avoiding Pass-By-Reference Using getValue() & setValue()
Why you should always use getValue()/setValue() instead of direct dot-walking assignment, and the gnarly pass-by-reference bugs you'll avoid.
-
Pro Tip: Use updateMultiple() for Maximum Efficiency!
Stop looping through records to update a single field. Use updateMultiple() instead - it's dramatically faster and your instance will thank you.
-
GlideRecord & GlideAjax: Client-Side Vs. Server-Side
Why client-side GlideRecord queries are a performance trap, and how GlideAjax moves that heavy lifting to the server where it belongs.
-
Make Your Log Entries Easier to Find
Tips for making your gs.log() entries actually findable, including a helper function that automatically adds source context.
-
Detect/Prevent Update Set Conflicts Before They Happen
A free tool that detects when multiple developers are modifying the same record in different update sets, helping you avoid collisions.
-
SN101: Boolean logic and ServiceNow's Condition Builder
A deep dive into boolean logic (AND/OR) and how it maps to ServiceNow's Condition Builder. Part of the SN101 series for newcomers.
-
Array.indexOf() not working in ServiceNow - Solution!
Why Array.indexOf() silently fails in server-side ServiceNow scripts, and how to fix it with ArrayUtil.