- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Team,
I want to create one CI on CMDB linux server, once i submit the record it should auto populate the Asset Field. How to achieve this. how to sync asset with the CI and from where we can get the asset information. Hope my requirement is clear. Thank you in advance
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Community members do reply on multiple threads and its difficult to go back and check on the response. You can tag members (like @vidyajadhav) when replying so it does pop up in notifications.
Also if you want to capture any record in your current update set, run this in background script:
var gr = new GlideRecord('<TABLE_NAME>');
if (gr.get('<RECORD_SYSID>')) {
var um = new GlideUpdateManager2();
um.saveRecord(gr);
}
Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.
Kind Regards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi @vidyajadhav,
If you need to map Linux server to asset management then go to the model categories and select the Linux server category as a hardware model.
The assets will automatically be created by a scheduled job.
If you then wish for further fields to be synced between the assets and the CI then a business rule which fires when the record is updated would do this.
Note: Some fields are already synced and its probably advisable to keep technical information in the CI and out of the Asset.
Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.
Kind Regards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hi Ehab,
I was able to make asset class as Hardware[alm_hardware] to achieve this. but if i want to revert this back to previous field, its not allowing me to edit again. how to revert back changes to asset class as None as shown in below picture. I want to revert back as i want to capture this again in update set
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Community members do reply on multiple threads and its difficult to go back and check on the response. You can tag members (like @vidyajadhav) when replying so it does pop up in notifications.
Also if you want to capture any record in your current update set, run this in background script:
var gr = new GlideRecord('<TABLE_NAME>');
if (gr.get('<RECORD_SYSID>')) {
var um = new GlideUpdateManager2();
um.saveRecord(gr);
}
Please Accept this response as Solution if it assisted you with your question & Mark this response as Helpful.
Kind Regards,
Ehab Pilloor
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
that's not how assets are CIs are created and synced
please discuss with your customer about the actual requirement.
💡 If my response helped, please mark it as correct ✅ and close the thread 🔒— this helps future readers find the solution faster! 🙏
Ankur
✨ Certified Technical Architect || ✨ 10x ServiceNow MVP || ✨ ServiceNow Community Leader