Scheduling the discovery of a specific business service
Today during a ServiceMapping class at K17 the question came up of how is it possible to schedule the discovery of a specific business service. Unfortunately, currently through a discovery schedule it's not possible to perform the discovery of one and only one specific business service; yet... There's a trick on how to accomplish this...
a) Create a Scheduled Job to a execute a script on a time/recurrence of your preference
b) Include some code that will Trigger the "discovery" execution of a business service...
//Make sure to replace the businessServiceSysID with the Sys ID of your business service.
var businessServiceSysID = 'fcd467c06f702b00dd37d3b0be3ee427'
var manager = new SNC.BusinessServiceManager();
manager.startDiscovery(businessServiceSysID);
c) Execute it to test it and Voila!
I hope this is helpful!
Thanks,
Berny
https://www.servicenow.com/community/in-other-news/scheduling-the-discovery-of-a-specific-business-service/ba-p/2291458