This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Find all store applications that have a newer version available | |
* exclude apps with compatibility issues | |
* create a batch install plan to update them to the latest version | |
* pass the plan to sn_appclient.AppManagerAPI.installBatch | |
*/ | |
var result = (function () { | |
var storeApp = new GlideRecord("sys_store_app"); | |
storeApp.addQuery("version", "ISNOTEMPTY", ""); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Example usage | |
* | |
* function onChange(control, oldValue, newValue, isLoading) { | |
* if (isLoading || newValue == "") { | |
* return; | |
* } | |
* | |
* var ajax = new GlideAjax("SimpleQueryAjax"); | |
* ajax.addParam( |