- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2025 10:35 AM
Good day,
I created a new data source called SCCM Monitor, it links to the SCCM db on the v_GS_WMIMONITORID table to bring in all the monitors that users has connected to their system, the query i have is the following:
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 11:47 AM
Hi @Peter Williams ,
Please follow below steps to achieve this:
- Create or Update a Transform Map with source as your import set table (e.g., u_sccm_monitor) and target table as alm_asset with coalesce on serial number or product code.
- Create field mappings as per your data.
- Handle Assigned User Logic via Script (on After)
var userGR = new GlideRecord('sys_user');
if (userGR.get('user_name', source.UserName)) {
target.assigned_to = userGR.sys_id;
}
// 2. Lookup computer CI
var compGR = new GlideRecord('cmdb_ci_computer');
if (compGR.get('name', source.ComputerName)) {
target.ci = compGR.sys_id; // links to associated CI (if using asset/CI sync)
}
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 11:47 AM
Hi @Peter Williams ,
Please follow below steps to achieve this:
- Create or Update a Transform Map with source as your import set table (e.g., u_sccm_monitor) and target table as alm_asset with coalesce on serial number or product code.
- Create field mappings as per your data.
- Handle Assigned User Logic via Script (on After)
var userGR = new GlideRecord('sys_user');
if (userGR.get('user_name', source.UserName)) {
target.assigned_to = userGR.sys_id;
}
// 2. Lookup computer CI
var compGR = new GlideRecord('cmdb_ci_computer');
if (compGR.get('name', source.ComputerName)) {
target.ci = compGR.sys_id; // links to associated CI (if using asset/CI sync)
}
Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2025 12:18 PM
Thank you think will direct me to the right direction to take