how can check if plugin is active
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2017 05:14 AM
hey,
how can i check if plugin is active without using GlideRecord ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2017 05:21 AM
Hi Abed,
Goto Plugins list in the left navigation and then search the name of plugin in the list and it will show you if it is active or inactive.
Thanks,
Rashmi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2017 05:26 AM
thanks,
But i meant to check it in the code .
For example by using client script :
this code in my client script give me the answer
var gr = new GlideRecord('v_plugin');
gr.addQuery('sys_id','com.snc.sa.metric');
gr.query();
if (gr.next()) {
if ( gr.active =='active' ) {
.....
}
}
But i want to know if there is another way to check that ? may serviceNow have some API for this ?
Thanks,
Abed

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-31-2021 10:06 PM
Hello Abed,
Good Day!
var gr = new GlideRecord('v_plugin');
gr.addEncodedQuery('id=com.glide.app_api^active=active');
gr.query();
if(gr.next()){
return true;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2018 08:39 AM
Server Side: GlidePluginManager.isActive('com.snc.pa.administration.console')
Does not work in Scoped Apps