Can we deactivate inherited field only in child table without affecting parent table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 12:48 AM
Hi all,
Can we deactivate inherited field only in child table without affecting parent table.
Thanks
Roopa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 12:59 AM
Hi @Roopa11
fields can be inherited from parent tables in a table hierarchy. However, you cannot directly deactivate or remove an inherited field from a child table without affecting the parent table.
Aspect | Description |
Field Creation in Child Table | When a table is extended in ServiceNow, only new fields defined in the child table are physically created in that table. Inherited fields from the parent table are not physically created in the child table. |
Accessing Inherited Fields | Inherited fields from the parent table are accessed in the child table as if they were part of the child table. These fields can be accessed through dot walking notation or directly by their field names. |
Dot Walking Notation | Inherited fields can be accessed using dot walking notation, such as "child_table.parent_field". This notation enhances code readability and clarity. |
Direct Access | Inherited fields can also be accessed directly using their field names, like "child_table_field_name", in scripts and business rules. |
Recommendation | Although both methods of access are possible, it is recommended to use dot walking notation when accessing inherited fields to make the code more readable and easier to understand. Dot walking explicitly indicates the relationship with the parent table. |
……………………………………………………………………………………………………
Please Mark it helpful 👍and Accept Solution✔️!! If this helps you to understand.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 01:01 AM
Hi @Roopa11 ,
No, it will make the field inactive for both.
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 01:04 AM
Hi @Roopa11 ,
Best thing would be to remove the field form the form and list layout.
Thanks.
Hope it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-23-2024 01:12 AM
Hello @Roopa11 , I don't think that we can deactivate the field without affecting to the Parent table. But you can use the Dictionary Override functionality for that field to take the actions like Mandatory, Read-Only, Display, etc.
You can find it under the related list of the Dictionary Entry called 'Dictionary Override'.
Please refer to the below screenshot for more information.
If the above answer resolve your issue, Please mark the solution as Accepted Solution and also mark it as Helpful.
Thank You.