- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-06-2024 10:55 PM
We have multiple discovery schedule running on scheduled basis, I want to update the Name of the discovery schedule in ''CI description'' field when ever discovery updates the CI during discovery.
Example :
Discovery Schedule Name : Berlin_datacenter_Vcenters.
CI Description Field Value to be updated as : Updated by 'DISCOVERY > Berlin_datacenter_Vcenters'.
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2024 01:52 PM
This one peaked my curiosity. Neat idea.
(function() {
var comment = "Updated by schedule:" + current.status.dscheduler.name + '';
var updated_ci = new GlideRecord("cmdb_ci");
if (updated_ci.get(current.cmdb_ci.sys_id)) {
updated_ci.setValue('comments', comment);
updated_ci.update();
}
}());
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2024 09:29 PM
i got to create a funtion and see if it helps me.. thanks for your time @shloke04 ... keep going 🙂
☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2024 04:38 AM
These Articles and Older Post will Guide you.
https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0820001
Regards
RP