---
title: "Your first CMDB class"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/integrations/cmdb/add-a-cmdb-class/
type: tutorial
application: cmdb
last_updated: 2026-10-18
commit: 5ea5eb0dd83d
---


This tutorial walks a CMDB administrator through adding a CI class for a device that needs fields the shipped classes do not have. At the end you have a class for Apple laptops with its own field. Its form rolls up the parent classes' fields, and one of its CIs is related to a router.

## What you will learn

- How to choose the parent class for a new CI class.
- How to create the class as a table in Form Builder.
- Why the class needs a CMDB metadata record, and which setting makes its form roll up.
- How to relate two CIs and view the relationship diagram.

## Before you begin

- You need the `cmdb_administrator` role to open the **CMDB → Administration** menu and edit CMDB metadata.
- You need a role that can create tables, such as `administrator` [UNVERIFIED].
- Work in a development instance and track the work in a change set, so you can move the class to production later.

The example class is a laptop made by Apple with one extra field, **Chip family**. Replace it with the device you need.

## Step 1: Choose the parent class and create the table

CI class inheritance is an "is a" relationship. Place the new class as low in the tree as it needs to go to inherit the fields it uses. An Apple laptop is a laptop, so its parent is `CMDBLaptop`. Choosing `CMDBEndUserDevice` instead would lose the laptop fields and force you to duplicate them.

<Steps>
  <Step>
    Select **CMDB → Administration → View physical CMDB tree** and find **CMDBLaptop** in the tree.
  </Step>
  <Step>
    Select **Application → Table → Create new table**. Form Builder opens.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image.png">Form Builder with the new table details panel open.</Image>
  </Step>
  <Step>
    Enter the label **CMDB Apple laptop**. The table name becomes `CMDBAppleLaptop`. CI class names start with `CMDB` to set them apart from other tables.
  </Step>
  <Step>
    Search the parent table list for **laptop** and select **CMDB Laptop**. Set **Menu creation** to **None**. Leave the **Advanced options** panel at its defaults.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-2.png">The table details filled in, with CMDB Laptop as the parent table.</Image>
  </Step>
  <Step>
    Select **Save table and configure fields**. The add field dialog opens.
  </Step>
  <Step>
    Add a field named **Chip family** of type **Choice**. In the choice editor, type **Intel** in **Choice label** and select **Add/Update**, then do the same for **Apple Silicon**. The choice key and order are generated for you.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-4.png">The Chip family field with its two choices in the choice editor.</Image>
  </Step>
  <Step>
    Select **Create**. The field appears on the form.
  </Step>
  <Step>
    Select **Save**. A progress dialog shows while the table is created.
  </Step>
</Steps>

<Callout type="warning">
  Do not drag other fields from **Available fields** onto this form. The form is saved as a fragment that holds only the new class's own fields. The parent classes' fields come from the rollup in step 2.
</Callout>

## Step 2: Register the class in CMDB metadata

A new class shows only its own fields until it has a CMDB metadata record. With **View definition is fragment** set, the CMDB form rolls up the fragments of the class and all its parents, one tab per class.

<Steps>
  <Step>
    Select **CMDB → Administration → CMDB metadata**. The list shows one record per CI class.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-8.png">The CMDB metadata list with a record for each shipped CI class.</Image>
  </Step>
  <Step>
    Select **New**.
  </Step>
  <Step>
    Enter the table name `CMDBAppleLaptop` in **Name** and the table label **CMDB Apple laptop** in **Title**. Set the logical domain to **Abstract domain**.
  </Step>
  <Step>
    Turn on **View definition is fragment**. Leave the icon and the infobox template at their defaults.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-10.png">The new CMDB metadata record with View definition is fragment turned on.</Image>
  </Step>
  <Step>
    Select **Create**.
  </Step>
  <Step>
    Go to `/#/CMDBAppleLaptop/_create` in your instance. The form shows the parent classes' fields on tabs beside the new field.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-12.png">The rolled-up create form for CMDB Apple laptop, with a tab for each parent class.</Image>
  </Step>
</Steps>

`CMDBLaptop` has no fields of its own, so it has no tab. A tab appears as soon as a field is added to it.

## Step 3: Create a CI and relate it to another

A relationship links a provider CI to a dependent CI through a relationship type. Here the laptop is related to a router.

<Steps>
  <Step>
    Create an Apple laptop CI from `/#/CMDBAppleLaptop/_create` and select **Create**.
  </Step>
  <Step>
    Create a router CI from `/#/CMDBRouter/_create` and select **Create**.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-13.png">The router create form filled in.</Image>
  </Step>
  <Step>
    Select **CMDB → Relationships → New relationship**. Choose the two CIs and a relationship type, then select **Create**.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-14.png">The new relationship form linking the laptop and the router.</Image>
  </Step>
  <Step>
    Go to `/#/CMDBAppleLaptop` and open the laptop. The record shows one relationship.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-16.png">The laptop record with one relationship listed.</Image>
  </Step>
  <Step>
    Select **View related items**. The CMDB diagram shows the laptop and the router.

    <Image src="asset:screenshots/admin/integrations-cmdb-add-a-cmdb-class/image-17.png">The CMDB diagram with the laptop linked to the router.</Image>
  </Step>
</Steps>

## What you have done

You chose a parent class by the "is a" test, created `CMDBAppleLaptop` with one field, and registered it in CMDB metadata so its form rolls up its parents. You then created two CIs and related them. To load CIs of the new class in bulk, map an import to the table. To give people access to it, the CMDB roles apply to every class that extends the CMDB table.

## Related

- [CMDB data model](page:integrations/cmdb/data-model)
- [CMDB roles](page:integrations/cmdb/roles)
- [Import a spreadsheet](page:environments/import-a-spreadsheet)
- [Track changes in a change set](page:environments/track-changes-in-a-change-set)
