Work with inheritance
Inheritance lets a type reuse the fields of a parent. These are the steps. If you want the idea behind it first, read Inheritance. Admins and schema designers can change a type's parent.
Set a parent
Open the object type and look at the Parent type panel above the tabs. It shows the current parent, or None.
- Choose Set parent.
- Pick a type from the list.
- Choose Set parent.
The change goes into your draft. Until you send it in a pull request, the panel shows the parent with a Draft badge.
Change or remove a parent
Choose Change to pick a different parent, or Remove to clear it. Removing a parent takes the inherited fields away from this type.
See what you inherit
On the Fields tab, fields from the parent appear under Inherited from parent with an Inherited badge. They are read only here. To change one, open the parent type and edit it there.
Records and references
A record of a child type counts as a record of its parent. A reference field that targets the parent can point at a child's records, and the picker labels each match with its type.
Mark a parent obsolete
Marking a type obsolete also marks its child types and their records obsolete. A confirmation says so before you continue, and you can undo it.
Delete a parent
Deleting an object type removes its records and files from the repository. If other types inherit from it, the confirmation lists them. Their parent link will point at a deleted type until you deal with them, so change or remove their parent first.
Create a parent from fields you already have
If two types share fields, you don't have to rebuild them by hand. You can pull the shared fields up into a new parent.