Asset to CI mapping for extended CI fields
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-10-2024 08:50 AM
The field IMEI exists in alm_hardware and in cmdb_ci_handheld_computing.
In Asset-CI mapping, it looks like can only map fields from the base CI Table (cmdb_ci).
In the advance view where you can add conditions, you can expand Handheld Computing devices to see it's IMEI field.
Any idea how I can map the alm_asset.IMEI to cmdb_ci_handheld_computing.IMEI?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
Hi, Did you get anywhere with this ? I've got the same issue.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
a month ago
I ended up using business rules. One for each table to catch if the IMEI changes, and if update the related record's field. For example, here is a rule on our cmdb_ci_handheld_computing table:
Then in the advanced tab, a small script to update the related record:
Script:
(function executeRule(current, previous /*null when async*/) {
var asset = new GlideRecord('alm_hardware');
asset.get(current.asset);
asset.imei=current.imei;
asset.update();
})(current, previous);