We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

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
Tera 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