Display name on Asset (Alm_hardware) not displaying properly
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 08:28 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 10:23 PM
Hi,
is this happening for all records?
Regards
Ankur
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 06:57 AM
Hi Ankur,
it is happening to all the records
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2022 11:01 PM
Hi J,
Check if you are using getDisplayValue('serial_number') in your script.
Regards,
Snehangshu Sarkar
Please mark an appropriate response as correct if my answer replied to your question.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2022 06:55 AM
This is out-of-box functionality calculated with the AssetUtils script include. Has that been modified?
AssetUtils()calculateDisplayName
calculateDisplayName: function(asset)
calculateDisplayName: function(asset) {
var display_name = "";
if (asset.asset_tag)
display_name += asset.asset_tag + " - ";
if (asset.model)
display_name += asset.model.display_name;
if (asset.display_name == display_name)
return false;
asset.display_name = display_name.trim();
return true;
},