- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 05:31 AM
Hi Harshvardhan,
Actually i am working on integration, questions are below.
1- Is there any web API to get all active plugins on my instance.
2- Is there any web API to get all inactive plugins on my instance.
3- Is there any web API to get total number of plugins that is offered by London instance service-now whether those are active/inactive
Thanks.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 05:47 AM
you can try with table api and use the table v_plugin to get the list of active,inactive and plugins details.
Sample Script:
var request = new sn_ws.RESTMessageV2();
var headers = request .getRequestHeaders();
request.setEndpoint('https://dev34768.service-now.com/api/now/table/v_plugin?sysparm_query=active%3Dactive');
request.setHttpMethod('GET');
//Eg. UserName="admin", Password="admin" for this code sample.
var user = 'admin';
var password = 'admin';
request.setBasicAuth(user,password);
request.setRequestHeader("Accept","application/json");
var response = request.execute();
gs.print(response.getBody());
gs.print(response.getHeader("X-Total-Count"));
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 05:59 AM
we have tried with v_plugin that show 394 active plugins but sys_plugins shows 623 activate plugins.
why these records are differ from each other. They are not showing equal active plugins.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 06:23 AM
status of the plugins can only be fetched from v_plugin tables. from sys_plugins you will only get the plugin component details.
i am assuming here you are using your org instance so i would suggest here to connect with HI Team , because they can give you the exact details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2019 07:48 AM
Thanks harshvardhan, for giving such a precious time.