Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How can my script determine the version of ServiceNow that is running?

esbensen
Kilo Explorer

As the title says ... we use the Table API extensively and need a way to programmatically determine the ServiceNow version (we are running both Eureka and Fuji in different environments).   Any ideas?

8 REPLIES 8

bernyalvarado
Mega Sage

If you want to do it from a client script the following should make it:




gel('mainBannerImage').title




using my developer instance as an example, the output will be:



"Powered by ServiceNow (HEAD (Fuji))"



I hope you like this solution



Thanks,


Berny


The output of one from Eureka will be the following:




Powered by ServiceNow (HEAD (Eureka))




Thanks,


Berny


Brenden Owen
ServiceNow Employee
ServiceNow Employee
Please use
gs.getProperty('glide.buildname')

quanth
Tera Contributor

Good day!

You can try this simple way:

//Check the current release of the instance:
gs.info(gs.getProperty('com.glide.embedded_help.version'));

//Check the current release and version of the instance:
gs.info(gs.getProperty('mid.version'));

Output:

*** Script: yokohama
*** Script: yokohama-12-18-2024__patch1-02-21-2025_03-05-2025_2133

Navigate to System Diagnostics > Stats > Stats to check the current release of the instance

quanth_0-1743216022214.png