Tag: script-includes
6 results
-
Calculate Distance Between Two Locations in ServiceNow (without an API call!)
Calculate the distance between two ServiceNow cmn_location records using the Haversine formula. No API call needed - just lat/long.
-
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.
-
GlideFilter is Broken - Free Tool: “BetterGlideFilter”
The scoped GlideFilter API in ServiceNow is broken in several well-documented ways. Here's a free drop-in replacement that actually works.
-
Handling TimeZones in ServiceNow (TimeZoneUtil)
Working with time zones in server-side ServiceNow scripts using the undocumented TimeZoneUtil API, because the documented approach barely exists.