--- title: "Hierarchical business object" slug: "custom-hierarchical-bto-extension" status: "update" updated: 2026-11-26T07:37:18Z published: 2026-11-26T07:37:18Z canonical: "docs.lobstersoftware.com/custom-hierarchical-bto-extension" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # Hierarchical business object Adds a hierarchical position level to the custom entity. Here, the fields, indices and extensions can be defined as for a repeatable entity: ![images/download/attachments/78263395/image2021-9-22_10-4-54-version-1-modificationdate-1632297895585-api-v2.png](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image2021-9-22_10-4-54-version-1-modificationdate-1632297895585-api-v2.png) **At header level, the following fields are created for this purpose and cannot be used elsewhere:** | Name | Description | | --- | --- | | `numberOfPackages` | Number of packages (integer) | | `lineItems` | Flat list of hierarchical positions | Furthermore, the following names are otherwise occupied: | Name | Description | | --- | --- | | `lineItemTree` | Line items as a tree structure | **The following fields are predefined at line item level:** | Name | Type | | --- | --- | | `parentId` | The ID of the parent custom entity | | `lineItemId` | The line item number (e.g. "1.1.3") | | `parentLineItemId` | The parent line item number (e.g. "1.1") | | `referencedLineItemId` | A possibly referenced line item number (e.g. "O1") | | `numberOfPackages` | Number of packages (integer) | | `aggregateNumberOfPackages` | Aggregated number of packages (integer) | Furthermore, the following names are documented elsewhere: | Name | Description | | --- | --- | | `weakTreeNode` | Line item in the tree structure | | `index` | Index of the tree structure | | `parentIndex` | Parent index of the tree structure | | `parentBto` | Transient reference to the parent custom entity |