how to identify instance version in servicenow instance

minnu
Kilo Contributor

how we can we identify which instance we are working in serviceNow Instance

6 REPLIES 6

The idea is good and helped me. I would like to suggest a small update:

 

var grSysUpgradeHistory = new GlideRecord('sys_upgrade_history');
grSysUpgradeHistory.addEncodedQuery("to_versionSTARTSWITHglide");
grSysUpgradeHistory.orderByDesc('upgrade_finished');
grSysUpgradeHistory.setLimit(1);
grSysUpgradeHistory.query();
if (grSysUpgradeHistory.next()) {
    gs.info('to_version: ' + grSysUpgradeHistory.getValue('to_version'));
}

 

Output:

 

*** Script: to_version: glide-utah-12-21-2022__patch3-04-20-2023_05-04-2023_2316.zip

 

Swarup Patra
Kilo Guru

You can identify which instance you are working in ServiceNow by following these steps:

1. Open your ServiceNow instance in a web browser.
2. Look at the URL in the address bar. The instance name is the part of the URL before '.service-now.com'. For example, if the URL is 'https://dev12345.service-now.com', the instance name is 'dev12345'.
3. You can also find the instance name in the System Information application. Navigate to System Diagnostics > Stats and look for the 'Instance Name' field.
4. Another way to find the instance name is by navigating to System Properties > Basic Configuration UI16. The instance name is displayed in the 'System URL' field.
5. If you are logged in as an administrator, you can also find the instance name in the footer of any page. The instance name is displayed next to the 'Build name' field.


nowKB.com
If you want to know any information about Service Now . Visit to https://nowkb.com/home