Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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

Hi,



You can get the instance name property.



gs.getProperty("instance_name");



Regards,


Niklas


Not applicable

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.


Niklas Peterson
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