Populate the fields for Owner and Cost Center

Tanya10
Tera Contributor

Hi,
I want to know the right approach to do this keeping serviceNow best practice in mind.
On cmdb_ci_cloud_service_account, we need to populate the fields for Owner and Cost Center from the corresponding Tags with the same names in cmdb_key_value

1 REPLY 1

Tarun Rekandar
Giga Guru

Hi @Tanya10,

 

A good approach would be to use an After Business Rule on cmdb_key_value to update the corresponding cloud service account record when the Owner or Cost Center tag is inserted or updated.

 

The Business Rule should identify the associated CI, check that it belongs to cmdb_ci_cloud_service_account, and map the tag value to the appropriate field. If Owner and Cost Center are reference fields, make sure the tag values are resolved to the correct records before updating them.

 

If these tags are populated through Cloud Discovery or an integration, consider handling the mapping in the existing process to avoid duplicate logic.

 

Accept the solution if it assisted you with your question & Mark this response as Helpful.

 

Regards,

Tarun