The value inheritance of Parent(parent).

Kentaro Numata
Tera Guru

Hello, It'as Ken.

 

I have a question about the value inheritance of Parent(parent).
Setting Parent(parent) inherits values ​​such as Status(install_status).
Is it possible to add an inherited column? I want to add Location(location) and custom column.

 

Parent inheritance seems to be handled by Business Rules "Inherit information from parent".

 

Thanks,

Ken.

1 ACCEPTED SOLUTION

Voona Rohila
Kilo Patron
Kilo Patron

Hi @Kentaro Numata 

Yes you can add the columns, Do you want to inherit only when parent field is linked? If yes then you can simply add below logic in the Inherit information from parent BR

current.location = current.parent.location;

 

You can modify in  script include but note that the same method is called from another BR too (Trickle information down to components) 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP

View solution in original post

2 REPLIES 2

Kentaro Numata
Tera Guru

I have attached a screenshot for reference.
"Status" and "Assigned to" are Null before setting Parent.

Before setting Parent.png

However, when I set the Parent and update the record, it inherits the "Status" and "Assigned to" values.
I want to implement this with Location and custom columns.

After setting Parent.png


Voona Rohila
Kilo Patron
Kilo Patron

Hi @Kentaro Numata 

Yes you can add the columns, Do you want to inherit only when parent field is linked? If yes then you can simply add below logic in the Inherit information from parent BR

current.location = current.parent.location;

 

You can modify in  script include but note that the same method is called from another BR too (Trickle information down to components) 


Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Rohila V
2022-25 ServiceNow Community MVP