Serial number not unique in SCCM import
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 06:45 PM
Hi Everyone,
We have implemented SCCM integration in our SNOW instance. We have noticed an issue in the import that, the serial number (and hence other details) of a computer is getting overwritten through each import and the same record is being updated multiple times in a week with different serial number.
Did anyone face this issue ? Please share pointers if any.
Note: Serial number is not unique field mapping in our implementation.
Thanks,
Gopi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 08:10 PM
Hi @Gopi22 ,
Please go through this thread: https://www.servicenow.com/community/cmdb-forum/how-to-use-quot-name-quot-field-instead-quot-serialn...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2023 09:20 PM
HI @Gopi22 ,
I trust you are doing great.
- Identify the source of the multiple serial number imports and the corresponding SCCM data.
- Determine the logic for selecting the appropriate serial number to update or insert into ServiceNow.
- Create a script (Business Rule or Script Include) to handle the import process and perform the necessary checks and updates.
- The script should query the existing computer records in ServiceNow based on a unique identifier other than the serial number, such as the hostname or MAC address.
- Compare the imported serial number with the existing records and decide whether to update the serial number or create a new record.
- If the serial number matches an existing record, update the necessary fields (if any changes are detected) but do not overwrite the entire record.
- If the serial number does not match any existing records, create a new computer record with the imported details.
- Ensure that the script includes appropriate error handling to handle any exceptions that may occur during the import process.
Was this answer helpful?
Please consider marking it correct or helpful.
Your feedback helps us improve!
Thank you!
Regards,
Amit Gujrathi