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

saprem_d
Giga Guru

Hello,



You can perform a stats.do to know the the current version.



https://yourinstance.service-now.com/stats.do?


Niklas Peterson
Mega Sage
Mega Sage

Hi,



You can get the instance name property.



gs.getProperty("instance_name");



Regards,


Niklas


Karthik Reddy T
Kilo Sage

Hello Suman,



Goto left navigation - Enter the key words " stats".



Click on stats and then you will find the version of Instance.



Or Navigate to system diagonatics>Stats.



Then you will find the version of the Instance.


Karthik Reddy T.
ServiceNow Commnunity MVP -2018 class.

Niklas Peterson
Mega Sage
Mega Sage

Hello again,



You want the instance or the version? If you want the version you can capture the latest applied update from the update history.



var gr = new GlideRecord('sys_upgrade_history');


gr.orderBy('upgrade_finished');


gr.query();


while (gr.next()) {


    var version = gr.to_version;


}


gs.print (version);



Regards,


Niklas