How to activate plugins via script
Jace's Blog
·
Jul 21, 2019
·
article
Sometimes you have a whole bunch of plugins to install. No reason to keep your screen busy, you can script it, here's how.
Some smart person named Ashby posted about this. I haven't tested it out, but this seems promising and likely undocumented.
//Partial Version
//you can check following URL to see if the work is finished. It is finished when the completion time is set and the percent complete is 100.
//<instance>/sys_execution_tracker_list.do?sysparm_query=name%3DPlugin%20Installer
var plugins = [];
plugins.push('com.snc.pa.change');
plugins.push('com.snc.pa.problem');
plugins.push('com.snc.pa.premium');
plugins.push('com.snc.pa.solution.library');
var main = new GlideMultiPluginManagerWorker();
main.setPluginIds(plugins);
main.setProgressName("Plugin Installer");
main.setBackground(true);
main.start();
View original source
https://jace.pro/post/2019-07-21-activating-plugins-via-script/