Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to add base class columns to the default view of all classes that inherit from the base class

okamototr13
Tera Contributor

 

Title:
Is it possible to bulk add the OOTB "Internet Facing" field from the [cmdb_ci_hardware] base table to the default form view of all inherited tables?

Body:
I would like to add the out-of-the-box (OOTB) field Internet Facing, which exists in the base table cmdb_ci_hardware, to the default form view of all tables that inherit from it.

What I want to achieve is:
Whenever a record from any class stored in the Hardware [cmdb_ci_hardware] table is opened, the Internet Facing field should already be present in the default form view of that class.

Is there a way to perform this operation in bulk, rather than manually updating each form view individually?

Any guidance or best practices would be greatly appreciated.


本文:
ServiceNowのCMDBにおいて、基底クラスである [cmdb_ci_hardware] テーブルに存在する OOTB(Out Of The Box) のフィールド「Internet Facing」を、これを継承しているすべてのテーブルのフォームのデフォルトビューに一括で追加したいと考えています。

実現したいことは、ハードウェアテーブルに格納されるすべてのクラスのレコードのフォームを開いた際に、「Internet Facing」フィールドがそれぞれのフォームのデフォルトビューに表示されている状態です。

この操作を手動で各テーブルごとに行うのではなく、一括で適用する方法は存在するのでしょうか?
ベストプラクティスや実現可能な方法についてご存じの方がいらっしゃいましたら、ぜひご教示いただけると幸いです。

1 REPLY 1

M Iftikhar
Tera Sage

Hi @okamototr13 

 

Yes, it’s possible to add the Internet Facing field to all tables inheriting from cmdb_ci_hardware in bulk.

  • This can be achieved using a server-side script in Scripts-Background that loops through all child tables and updates their default forms to include the field.

Thanks & Regards, 
Muhammad Iftikhar 

If my response helped, please mark it as the accepted solution so others can benefit as well. 

Thanks & Regards,
Muhammad Iftikhar

If my response helped, please mark it as the accepted solution so others can benefit as well.