# BranchById: Bouw7 Branch by ID Returns a single branch based on the given ID. Returns a single branch based on the given ID. - Catalog: `Bouw7` - Schema: `Organization` - Label: Branch by ID 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 `BranchById`. 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 | |---|:---:|:---:|:---:|---| | `id` | `` | ☑ | | | ## Columns of Table Function The columns of the table function `BranchById` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `accountNumber` | `varchar2`(255) | Account Number | ☐ | Account number of the branch. | | `address` | `varchar2`(255) | Address | ☐ | Address of the branch. | | `afasAdministration` | `varchar2`(255) | AFAS Administration | ☐ | Afas administration code of the branch. | | `afasProjectLeader` | `varchar2`(255) | AFAS Project Leader | ☐ | Afas project leader of the branch. | | `city` | `varchar2`(255) | City | ☐ | City of the branch. | | `cocNumber` | `varchar2`(255) | Chamber of Commerce Number | ☐ | The COC number. | | `code` | `varchar2`(255) | Code | ☐ | The code of the branch. | | `companyName` | `varchar2`(255) | Company Name | ☐ | The company name of the branch. | | `countryCode` | `varchar2`(2) | Country Code | ☐ | An ISO 3166-2 representation of the country. | | `createdAt` | `datetime` | Created at | ☐ | The creation time of the entity. | | `createdBy` | `varchar2` | Created by | ☐ | The user that created the entity. | | `division_description` | `varchar2` | Division Description | ☐ | The description of the division this object is associated with. | | `division_exactPaymentConditionPurchase` | `varchar2`(255) | | ☐ | A default payment condition to use for purchase related items. | | `division_exactPaymentConditionSales` | `varchar2`(255) | | ☐ | A default payment condition to use for sales related items. | | `division_glAccountCode` | `varchar2` | Division General Ledger Account Code | ☐ | A general ledger account code to use for sales related items. | | `division_glAccountCodePurchase` | `varchar2` | Division General Ledger Account Code Purchase | ☐ | A general ledger account code to use for purchase related items. | | `division_id` | `int64` | Division ID | ☐ | The ID of the division this object is associated with. | | `division_journalCode` | `varchar2` | Division Journal Code | ☐ | A journal code to use for sales related items. | | `division_journalCodePurchase` | `varchar2` | Division Journal Code Purchase | ☐ | A journal code to use for purchase related items. | | `division_journalCodeWorkInProgress` | `varchar2` | | ☐ | A default journal code to use for work in progress related items. | | `division_workInProgressSettings_costCenterEquipment` | `varchar2`(255) | | ☐ | A cost center to use for equipment related items. | | `division_workInProgressSettings_costCenterEquipmentDebit` | `varchar2`(255) | | ☐ | A cost center to use for equipment debit related items. | | `division_workInProgressSettings_costCenterHours` | `varchar2`(255) | | ☐ | A cost center to use for hours related items. | | `division_workInProgressSettings_costCenterHoursDebit` | `varchar2`(255) | | ☐ | A cost center to use for hours debit related items. | | `division_workInProgressSettings_costCenterMaterial` | `varchar2`(255) | | ☐ | A cost center to use for material related items. | | `division_workInProgressSettings_costCenterMaterialDebit` | `varchar2`(255) | | ☐ | A cost center to use for material debit related items. | | `division_workInProgressSettings_costCenterPurchase` | `varchar2`(255) | | ☐ | A cost center to use for purchase related items. | | `division_workInProgressSettings_costCenterPurchaseDebit` | `varchar2`(255) | | ☐ | A cost center to use for purchase debit related items. | | `division_workInProgressSettings_costCenterSales` | `varchar2`(255) | | ☐ | A cost center to use for sales related items. | | `division_workInProgressSettings_costCenterSalesDebit` | `varchar2`(255) | | ☐ | A cost center to use for sales debit related items. | | `division_workInProgressSettings_costCenterWaste` | `varchar2`(255) | | ☐ | A cost center to use for waste related items. | | `division_workInProgressSettings_costCenterWasteDebit` | `varchar2`(255) | | ☐ | A cost center to use for waste debit related items. | | `division_workInProgressSettings_glAccountCodeEquipment` | `varchar2`(255) | | ☐ | A general ledger account code to use for equipment related items. | | `division_workInProgressSettings_glAccountCodeEquipmentClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for equipment closing related items. | | `division_workInProgressSettings_glAccountCodeEquipmentDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for equipment debit related items. | | `division_workInProgressSettings_glAccountCodeHours` | `varchar2`(255) | | ☐ | A general ledger account code to use for hours related items. | | `division_workInProgressSettings_glAccountCodeHoursClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for hours closing related items. | | `division_workInProgressSettings_glAccountCodeHoursDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for hours debit related items. | | `division_workInProgressSettings_glAccountCodeMaterial` | `varchar2`(255) | | ☐ | A general ledger account code to use for material related items. | | `division_workInProgressSettings_glAccountCodeMaterialClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for material closing related items. | | `division_workInProgressSettings_glAccountCodeMaterialDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for material debit related items. | | `division_workInProgressSettings_glAccountCodePurchase` | `varchar2`(255) | | ☐ | A general ledger account code to use for purchase related items. | | `division_workInProgressSettings_glAccountCodePurchaseClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for purchase closing related items. | | `division_workInProgressSettings_glAccountCodePurchaseDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for purchase debit related items. | | `division_workInProgressSettings_glAccountCodeSales` | `varchar2`(255) | | ☐ | A general ledger account code to use for sales related items. | | `division_workInProgressSettings_glAccountCodeSalesClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for sales closing related items. | | `division_workInProgressSettings_glAccountCodeSalesDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for sales debit related items. | | `division_workInProgressSettings_glAccountCodeWaste` | `varchar2`(255) | | ☐ | A general ledger account code to use for waste related items. | | `division_workInProgressSettings_glAccountCodeWasteClosing` | `varchar2`(255) | | ☐ | A general ledger account code to use for waste closing related items. | | `division_workInProgressSettings_glAccountCodeWasteDebit` | `varchar2`(255) | | ☐ | A general ledger account code to use for waste debit related items. | | `division_workInProgressSettings_id` | `int64` | | ☐ | The ID of the work in progress settings. | | `email` | `varchar2`(255) | Email | ☐ | Email of the branch. | | `file_createdAt` | `datetime` | File Created at | ☐ | The creation time of the entity. | | `file_createdBy` | `varchar2` | File Created by | ☐ | The user that created the entity. | | `file_extension` | `varchar2` | File Extension | ☐ | The extension of the file. | | `file_id` | `int64` | File ID | ☐ | The ID of this file | | `file_modelId` | `int64` | File Model ID | ☐ | The ID of the associated type. | | `file_modelType` | `varchar2` | File Model Type | ☐ | The category of the file. | | `file_name` | `varchar2` | File Name | ☐ | The public name of the file. | | `file_secureHash` | `varchar2` | | ☐ | A secure random hash for the file, that can be used for retrieving thumbnails without additional authentication. | | `file_size` | `int64` | File Size | ☐ | The size of the file in bytes. | | `file_updatedAt` | `datetime` | File Updated at | ☐ | The last updated time of the entity. | | `file_updatedBy` | `varchar2` | File Updated by | ☐ | The user that last updated the entity. | | `file_uri` | `varchar2` | File URI | ☐ | The URI of the file, used to fetch the contents. | | `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. | | `id` | `int64` | ID | ☐ | ID of the branch. | | `invoiceFooter` | `varchar2` | Invoice Footer | ☐ | The invoice footer text. | | `nAccountText` | `varchar2`(255) | N-Account Text | ☐ | The n account text of the branch. | | `name` | `varchar2`(255) | Name | ☐ | Name of the branch. | | `phoneNumber` | `varchar2`(255) | Phone Number | ☐ | Phone number of the branch. | | `updatedAt` | `datetime` | Updated At | ☐ | The last updated time of the entity. | | `updatedBy` | `varchar2` | Updated by | ☐ | The user that last updated the entity. | | `useOrganizationInfo` | `char` | Use Organisation Info | ☐ | If organization information should be used instead of branch information. | | `vatNumber` | `varchar2`(255) | VAT Number | ☐ | VAT number of the branch. | | `wageComponentPercentage` | `varchar2` | Wage Component Percentage | ☐ | The wage component percentage of the branch. | | `website` | `varchar2`(255) | Website | ☐ | The website of the branch. | | `zipCode` | `varchar2`(20) | ZIP Code | ☐ | ZIP code of the branch. |