- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 02:03 AM
Hi Community,
I have created one field 'Display name' on 'cmdb_ci_business_capabilty' table which shows level and name of capability together.
I am writing a fix script to change the display of all capabilities, 'Display Name' of a capability where parent is not empty ,The display name should be in below format:
"Display name of parent+ Display name of child".
It means display name works to show the hierarchy of capabilities.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 04:50 AM
You can simply pull by dot walking,
lets say you are declaring the object as grCapability, then your code would be
grCapability.parent.u_display_name //check for the correct backend name of the field
Aman Kumar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-03-2023 03:43 AM
unless you share what script you tried, we cannot help.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
