# Branches: Bouw7 Branches
Return a list of all accessible branches associated with the organization.
Return a list of accessible branches associated with the organization.
- Catalog: `Bouw7`
- Schema: `Organization`
- Label: Branches
This is a read-only table function. The Bouw7 API may not support changing the data or the Invantive UniversalSQL driver for Bouw7 does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Bouw7 API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `Branches`. A value must be provided at all times for required parameters, but optional parameters in general do not need to have a value and the execution will default to a pre-defined behaviour. Values can be specified by position and by name. In both cases, all parameters not specified will be evaluated using their default values.
Value specification by position is done by listing all values from the first to the last needed value. For example: a `select * from table(value1, value2, value3)` on a table with four parameters will use the default value for the fourth parameter and the specified values for the first three.
Value specification by name is done by listing all values that require a value. For example with `select * from table(name1 => value1, name3 => value3)` on the same table will use the default values for the second and fourth parameters and the specified values for the first and third.
| Name | Data Type | Required | Default Value | Documentation |
|---|:---:|:---:|:---:|---|
| `q` | `` | ☐ | | A [Heimdall Query Language](https://heimdall.bouw7.nl/docs/query-language) string |
## Columns of Table Function
The columns of the table function `Branches` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `address` | `varchar2` | Address | ☐ | An address comprised of street name, house/building number, etc. |
| `city` | `varchar2` | City | ☐ | City of residence for this branch. |
| `cocNumber` | `varchar2` | Chamber of Commerce Number | ☐ | Chamber of Commerce identification number. |
| `code` | `varchar2` | Code | ☐ | An arbitrary identification code for this branch. If alternative project numbering is used, a project associated with this branch will have this code prefixed before the project number. |
| `companyName` | `varchar2` | Company Name | ☐ | Company name of this branch. |
| `countryCode` | `varchar2` | Country Code | ☐ | An ISO 3166-2 representation of the country. |
| `createdAt` | `datetime` | Created at | ☐ | The creation date of the object in ATOM/ISO-8601 format |
| `createdBy_id` | `int64` | Created by ID | ☐ | The ID of the user. |
| `createdBy_username` | `varchar2` | Created by User Name | ☐ | The username of the user. |
| `division_description` | `varchar2` | Division Description | ☐ | The description of the division. |
| `division_exactDivisionId` | `varchar2` | Division Exact Division ID | ☐ | The division ID of an Exact Online environment. |
| `division_glAccountCode` | `varchar2` | Division General Ledger Account Code | ☐ | A default general ledger account code to use for sales related items. |
| `division_glAccountCodePurchase` | `varchar2` | Division General Ledger Account Code Purchase | ☐ | A default general ledger account code to use for purchase related items. |
| `division_id` | `int64` | Division ID | ☐ | The ID of the division. |
| `division_journalCode` | `varchar2` | Division Journal Code | ☐ | A default journal code to use for sales related items. |
| `division_journalCodePurchase` | `varchar2` | Division Journal Code Purchase | ☐ | A default journal code to use for purchase related items. |
| `emailAddress` | `varchar2` | Email Address | ☐ | Main email address of this branch. |
| `gAccountPercentage` | `varchar2` | G-Account Percentage | ☐ | The g account percentage of the branch. |
| `gAccountText` | `varchar2`(255) | G-Account Text | ☐ | The g account text of the branch. |
| `iban` | `varchar2` | IBAN | ☐ | The IBAN of this branch. |
| `id` | `int64` | ID | ☐ | The ID of this branch. |
| `nAccountText` | `varchar2`(255) | N-Account Text | ☐ | The n account text of the branch. |
| `name` | `varchar2` | Name | ☐ | Name of this branch. |
| `phoneNumber` | `varchar2` | Phone Number | ☐ | Main phone number of this branch. |
| `updatedAt` | `datetime` | Updated At | ☐ | The creation date of the object in ATOM/ISO-8601 format |
| `updatedBy_id` | `int64` | Updated by ID | ☐ | The ID of the user. |
| `updatedBy_username` | `varchar2` | Updated by User Name | ☐ | The username of the user. |
| `useOrganizationInfo` | `char` | Use Organisation Info | ☐ | If organization information should be used instead of branch information. |
| `vatNumber` | `varchar2` | VAT Number | ☐ | VAT number. |
| `wageComponentPercentage` | `varchar2` | Wage Component Percentage | ☐ | The wage component percentage of the branch. |
| `website` | `varchar2` | Website | ☐ | The website of the branch. |
| `zipCode` | `varchar2` | ZIP Code | ☐ | Zip code, also known as postal code. |