CMDB Classes - Adding/Removing Mandatory Fields in Derived Classes

RL_TDSB
Kilo Contributor

We're hoping to add and remove mandatory fields in a derived CMDB class without changing the parent. This is meant specifically for classes where Discovery doesn't work (ie, Data Centre racks, Power circuits).

What's the best way to accomplish this?

1 ACCEPTED SOLUTION

David104
Tera Guru

You can use a dictionary override to accomplish this, which will leave the mandatory state on the parent table as it is, but allowing you to change it on the child classes.

It sounds like discovery is not a consideration on these particular classes, but keep in mind that discovery will not be able to create a CI if the payload is missing a mandatory field unless you set the glide.required.attribute.enabled property to false.

Another option is to use client scripts or UI policies to ensure that required data is entered (if being entered by the form). You can also configure 'Recommended' attributes and use the CMDB Dashboard to report on CI's that do not have all recommended fields and created remediation tasks.

View solution in original post

3 REPLIES 3

David104
Tera Guru

You can use a dictionary override to accomplish this, which will leave the mandatory state on the parent table as it is, but allowing you to change it on the child classes.

It sounds like discovery is not a consideration on these particular classes, but keep in mind that discovery will not be able to create a CI if the payload is missing a mandatory field unless you set the glide.required.attribute.enabled property to false.

Another option is to use client scripts or UI policies to ensure that required data is entered (if being entered by the form). You can also configure 'Recommended' attributes and use the CMDB Dashboard to report on CI's that do not have all recommended fields and created remediation tasks.

RL_TDSB
Kilo Contributor

David - Dictionary Override worked like a charm.

Thank you, kind sir.

Awesome, glad I could help!