Allow All Users to Find Instance's Release & Patch Info
Hello,
I just wanted to share with the community a way to make your ServiceNow instance's release and patch information available to all of your users. I tried finding this solution on the community but was unable to find it in my search results. This is the main reason I am posting this here. I hope it is found useful.
WHAT IT DOESDo you want this sort of feature available to all of your users?
You could use a variety of terminologies, such as:
- New York Release (Patch 10)
- New York Release
- New York (Patch 10)
- New York
- ServiceNow Home Page (New York)
- ServiceNow Home Page (New York Release)
- Home Page (New York)
- Home Page (New York Release)
- etc
You can use your imagination to come up with your own and then modify the below scripts to conform to your vision.
HOW IT'S DONE
You can accomplish this perpetually, keeping the value dynamic and up to date even after updates, with the following scheduled job:
| Name: | Update Glide Banner Image Title Property |
|---|---|
| Active: | TRUE |
| Run: | Daily |
| Time: | 12:00:00 AM |
| Application: | Global |
| Run this script: | var release = gs.getProperty('com.glide.embedded_help.version'); var patch = ''; if (gs.getProperty('glide.war').includes('patch')) {patch = ' (Patch ' + gs.getProperty('glide.war').split('patch')[1].split('-',1) + ')';} gs.setProperty('glide.banner.image.title', release + ' Release' + patch); |
HOW IT WORKS
First, the above gets these two system properties:
1. com.glide.embedded_help.version
- Ex: "New York"
2. glide.war
- Ex: "glide-newyork-06-26-2019__patch10-07-30-2020_08-05-2020_0901.zip"
Second, it splits glide.war and returns everything after "patch", then splits that at the first "-" and discards the rest.
(This second step should remain functioning as long as 1) "patch" is in the value, 2) the patch# is immediately after it, and 3) a dash is immediately after that. Please don't change this naming convention ServiceNow, haha.)
Finally, it concatenates the two together to produce a final result such as "New York Release (Patch 10)"!
I hope that helps! Please let me know if it needs any tweaks or if you know a better source for the patch number. Thanks!
Kind Regards,
Joseph
Labels:
https://www.servicenow.com/community/developer-articles/allow-all-users-to-find-instance-s-release-patch-info/ta-p/2308396
