How to set the Domain of the Knowledge Category as same as that of the Knowledge Base.

sreeshsurendran
Tera Guru

How to set the Domain of the Knowledge Category as same as that of the Knowledge Base where the PARENT is in DOCUMENT ID

2 ACCEPTED SOLUTIONS

Namrata Ghorpad
Mega Sage

Hello,

Create before insert business rule on Knowledge Category(kb_category) table and select condition as Parent table is not empty and in script write below code.

 

current.setValue('sys_domain',current.parent_id.sys_domain);

 

Please mark my answer as helpful/correct if it helps you.

Regards,

Namrata

View solution in original post

Hi @Namrata Ghorpad , thanks for providing the solution. It's working as expected 🙂

View solution in original post

2 REPLIES 2

Namrata Ghorpad
Mega Sage

Hello,

Create before insert business rule on Knowledge Category(kb_category) table and select condition as Parent table is not empty and in script write below code.

 

current.setValue('sys_domain',current.parent_id.sys_domain);

 

Please mark my answer as helpful/correct if it helps you.

Regards,

Namrata

Hi @Namrata Ghorpad , thanks for providing the solution. It's working as expected 🙂