File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Background Scripts/Update All Store Apps Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ Select one of the options below to run.
41
41
42
42
## OPTION 1: Find out how many apps are available to upgrade
43
43
44
- 1 . *** Paste this line at the bottom of the script.***
44
+ 1 . *** Replace the last line by pasting this line at the bottom of the script.***
45
45
46
46
``` javascript
47
47
new upgradeUtil ().countUpgrades ();
@@ -215,4 +215,4 @@ Copy and paste this URL from the output of the script into a browser tab to view
215
215
216
216
[^ 2 ]: ** Product Docs: Continuous Integration/ Continuous Delivery (CICD ) API : ** [https: // docs.servicenow.com/csh?topicname=cicd-api.html&version=latest](https://docs.servicenow.com/csh?topicname=cicd-api.html&version=latest)
217
217
218
- [^ 3 ]: ** Product Docs: Create a Connection & Credential alias: ** [https: // docs.servicenow.com/csh?topicname=connection-alias.html&version=latest](https://docs.servicenow.com/csh?topicname=connection-alias.html&version=latest)
218
+ [^ 3 ]: ** Product Docs: Create a Connection & Credential alias: ** [https: // docs.servicenow.com/csh?topicname=connection-alias.html&version=latest](https://docs.servicenow.com/csh?topicname=connection-alias.html&version=latest)
Original file line number Diff line number Diff line change @@ -32,6 +32,8 @@ upgradeUtil.prototype = {
32
32
var versionStr = appsGr . getValue ( 'version' ) ;
33
33
var assignedVersionStr = appsGr . getValue ( 'assigned_version' ) ;
34
34
var latestVersionStr = appsGr . getValue ( 'latest_version' ) ;
35
+ // Check if Latest Version field is populated, break the current loop if so as update cannot be checked
36
+ if ( ! latestVersionStr ) break ;
35
37
// Convert the strings to arrays of integers
36
38
var versionArr = versionStr . split ( '.' ) . map ( Number ) ;
37
39
var assignedVersionArr = assignedVersionStr . split ( '.' ) . map ( Number ) ;
You can’t perform that action at this time.
0 commit comments