CI Lookup Rules matching against most recently created CI (if CI is duplicated)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 06:29 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 06:45 PM
Hi @Wei Yau
If you are using Lookup method as SCRIPT then you can use orderBy() method on your GlideRecord query so that it will fetch the old one instead of newly created.
If Lookup method is not of Script type, I don't think we can control this behaviour.
Please mark my answer helpful and accept as solution if it helped 👍✅
Anvesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-15-2023 08:11 PM
I am using script and it's matching the fqdn exactly (in this case ABC_CI). However because the CMDB contains XYZ_CI with a different fqdn but the same serial number, that wrong CI (XYZ_CI) automatically becomes the default.
So it's not an order by issue because the script is returning a single sys_id.