---
title: "GeneralLedgerAccountMappingAccountsByHierarchyCode (Twinfield)"
description: "General Ledger Account Mapping Accounts by Hierarchy Code"
language: en
source_language: en
translation_state: complete
canonical: https://documentation.invantive.eu/en/datamodels/twinfield/Twinfield.Twinfield.GeneralLedgerAccountMappingAccountsByHierarchyCode
original: https://documentation.invantive.eu/en/datamodels/twinfield/Twinfield.Twinfield.GeneralLedgerAccountMappingAccountsByHierarchyCode
updated: 2026-11-01T17:45:47Z
license: https://documentation.invantive.eu/en/
---

# GeneralLedgerAccountMappingAccountsByHierarchyCode: Twinfield General Ledger Account Mapping Accounts by Hierarchy Code

`read only` `per partition` `XML`

- Catalog: `Twinfield`
- Schema: `Twinfield`
- Label: General Ledger Account Mapping Accounts by Hierarchy Code

The data in this table is partitioned per value of the `COMPANY_CODE` column.

Can only retrieve data.

## Summary

The contents are a office-specific list of hierarchy definitions, just like countries or currencies.

## API Source

- XML service: `webservices/hierarchies.asmx`
- XML topic: `Load`

## Performance Characteristics

| Characteristic | Value |
|---|---:|
| Average access latency (ms) | 54 |
| Full scan rows per minute | 1,690 |
| Point query rows per minute | 1,111 |
| Write rows per minute | 131 |

The result can be cached on the client.

## Parameters

| Name | Data Type | Required | Default | Documentation |
|---|---|:---:|---|---|
| `COMPANY_CODE` | `` | [x] |  | Code of company. |
| `hierarchyCode` | `` | [x] |  | Code of the hierarchy to be retrieved. |

## Table Columns

The columns of the table `GeneralLedgerAccountMappingAccountsByHierarchyCode` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update.

| Name | Data Type | Label | Required | Marks | Documentation |
|---|---|---|:---:|---|---|
| `BALANCETYPE` | `varchar2` | Balance Type | [x] |  | Balance type: -1 = Credit, 0 = Balance, 1 = Debit. |
| `CODE` | `varchar2` | Code | [x] |  |  |
| `COMPANY_CODE` | `varchar2` | Company ID | [x] |  |  |
| `COMPANY_NAME` | `varchar2` | Company Name | [x] |  |  |
| `HIERARCHYELEMENTID` | `int32` | Hierarchy Element ID | [x] |  |  |
| `LEVEL` | `int32` | Level | [x] |  |  |
| `PARENTCODE` | `varchar2` | Parent Code | [ ] |  |  |
| `PARENTID` | `int32` | Parent ID | [ ] |  |  |
| `PATH` | `varchar2` | Path | [x] |  |  |
| `TYPE` | `varchar2` | Type | [x] |  |  |

## Sample Queries

```sql
--
-- Mapping from Twinfield general ledger accounts to the hierarchies.
--
-- Table documentation: https://documentation.invantive.eu/2017R2/twinfield-data-model/webhelp/twinfield-connector-twinfield-generalledgeraccountmappingaccountsbyhierarchycode.html
--
select *
from   Twinfield.Views.GeneralLedgerAccountMappingAccounts@tfd
limit  100
```



## Release Notes

What changed per release in the tables, columns, attributes and capabilities of the driver:

- [Twinfield](/en/release-notes/drivers?driver=twinfield)

