- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2018 03:55 PM
Hello Everyone
Can we trigger discovery from a ITSM service catalog item?
Else can we trigger a discovery schedule from a ITSM Service catalog item?
Thanks!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2018 04:35 PM
You can trigger Discovery schedule from a script. Either it could be a workflow script from a catalog item or a business rule or from a UI action. To view script how to trigger a schedule, look at 'Discover Now' UI action on any Discovery Schedule. Right click on Discovery Now form link, you would see UI action script. That scripts helps on how to trigger job from a script.
Another example of triggering any scheduled job using a script
var rec = new GlideRecord('sysauto_script');
rec.get('name', 'YOUR_JOB_NAME_HERE');
SncTriggerSynchronizer.executeNow(rec);
above script lines triggers a specific job!
hope that clarifies, yes, you can trigger a Discovery job from a Catalog item workflow script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-20-2018 04:35 PM
You can trigger Discovery schedule from a script. Either it could be a workflow script from a catalog item or a business rule or from a UI action. To view script how to trigger a schedule, look at 'Discover Now' UI action on any Discovery Schedule. Right click on Discovery Now form link, you would see UI action script. That scripts helps on how to trigger job from a script.
Another example of triggering any scheduled job using a script
var rec = new GlideRecord('sysauto_script');
rec.get('name', 'YOUR_JOB_NAME_HERE');
SncTriggerSynchronizer.executeNow(rec);
above script lines triggers a specific job!
hope that clarifies, yes, you can trigger a Discovery job from a Catalog item workflow script.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-21-2018 10:48 AM
Thanks Sashi.
I will try this and give you an update.