Run a script post discovery

jgummersall1
Kilo Contributor

I am looking for a way to trigger a script when discovery finishes. Is there any way that anyone knows of, that makes it easy to do that?

2 REPLIES 2

tim_broberg
ServiceNow Employee
ServiceNow Employee

I expect you would create a Script Action triggered by the discovery.complete event.

Kiran7
Giga Expert

Hi,

 

Yes ,we can run a script after discovery is completed.

Whenever we schedule discovery and discover now, it creates a record in discovery status. You can see state filed which is present in discovery status table. It changes accordingly as state of the discovery changes. 

We can write a script that will run whenever the "State" is "Completed".  

What type of action you want to perform depending on that we can write a script ,for e.g Business Rule on state change to completed.

 

Please hit helpful if you find this information helpful.

 

 

Regrads,

Kiran