How do I get the application version number?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 03:36 AM
I want to display the scoped application version number on a Programmatic Content Block so I need a way to get it using jelly scripting (if possible).
To be clear I mean the version of our scoped application which is installed on their SN instance, not the version of ServiceNow or anything like that.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 03:30 AM
Hi Peter. That information has to exist somewhere as it's available on the list of apps when you get it to production, right? That how upgrades through the ServiceNow app repo know there's an update. It even says in smaller text under the app name "Version 1.6" (or whatever.) So the information is SOMEWHERE.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-08-2016 03:33 AM
I agree it does have to be somewhere. For now we're going to just hard code it as we've run out of time to find a programmatic solution

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-18-2016 09:56 AM
It's in sys_store_app on customer instances, but, when I added logic to check that table it created a dependency on Scoped App Client - which failed during install on other instances (depending on instance version).
So not sure how I want to proceed with this. I'm thinking a system property that I read in my app? And also maybe a BR on my development instance that automatically updates that system property when I update my app version, so that I don't have to keep them in sync.
BTW, gs.getCurrentApplicationId() should get you the app version sys_id.