Full Locations Hierarchy - to tidy up the default cmn_location table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2025 06:56 AM - last edited Monday
Do you find the out-of-the-box list of regions, countries, states/provinces, and cities in our beloved platform a little rough around the edges? Yes, fellow ServiceNow addict, I do as well. When I am preparing for a demonstration, I like to select the Locations where my prospective clients live and work. This can help them identify with the solution and visualize themselves using it.
Safe Harbour statement: if you rely on the OOTB ServiceNow demo data, this might not be for you. This is for convenience only and I provide no warranties or guarantees. Delete or modify records at your peril. Test this is in a sub-prod instance before committing!
2026-02-02 edit: I merged the view and choice updates with the list of locations into a single update set.
- Clear the parent value from all records in cmn_locations.
- Delete all records from cmn_location. Note: even after removing demo data from an instance, there will be transfer order, asset, and consumable records associated with stockrooms and warehouses which are tied to certain locations. You'll have to clear the stockroom from the various assets to fully cleanse the cmn_location table.
- Load, preview, and commit the attached Location_Updates.xml update set. This creates a form and list view called 'Hierarchy' and adds the 'County' and 'Territory' location type choices. It also includes 622 locations with proper parent-child hierarchy.
You'll find some of the locations are missing the longitude and latitude values. I compiled this list manually one day a few years ago and did not know how to use the platform to autogenerate the coordinates. I still don't, but I will eventually do it when the need arises. For now, enjoy this new list! And apologies for any misspellings, errors, or omissions. Please correct as you see fit in your own instances.
Chris Andrews
ServiceNow Consultant and Implementer
You know the drill... if you liked this, mark it as helpful!
