# SetCurrentDivision: Exact Online Set Current Division - Catalog: `ExactOnlineREST` - Schema: `System` - Primary Keys: `Code` - Label: Set Current Division The data in this table is partitioned per value of the `Division` column. This is a read-only table function. The Exact Online API may not support changing the data or the Invantive UniversalSQL driver for Exact Online does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Exact Online API. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `SetCurrentDivision`. 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 | |---|:---:|:---:|:---:|---| | `code` | `int32` | ☑ | | | | `division` | `int32` | ☐ | | ID of the division to retrieve data for. | ## Columns of Table Function The columns of the table function `SetCurrentDivision` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `AddressLine1` | `varchar2`(80) | Address Line 1 | ☐ | First address line. | | `AddressLine2` | `varchar2`(80) | Address Line 2 | ☐ | Second address line. | | `AddressLine3` | `varchar2`(80) | Address Line 3 | ☐ | Third address line. | | `ArchiveDate` | `datetime` | Archive Date | ☐ | | | `BlockingStatus` | `int32` | Blocking Status | ☑ | Values: 0 = Not blocked 1 = Backup 2 = Conversion busy 3 = Conversion shadow 4 = Conversion waiting 5 = Copy data waiting 6 = Copy data buzy 100 = Wait for deletion 101 = Deleted 102 = Deletion failed. | | `BusinessTypeCode` | `varchar2`(10) | Business Type Code | ☐ | Business Type Code. | | `BusinessTypeDescription` | `varchar2`(150) | Business Type Description | ☐ | Business Type Description. | | `ChamberOfCommerceEstablishment` | `varchar2` | CoC Establishment | ☐ | Establishment date at chamber of commerce. | | `ChamberOfCommerceNumber` | `varchar2`(60) | Chamber of Commerce Number | ☐ | Chamber of commerce number. | | `City` | `varchar2`(30) | City | ☐ | City. | | `Code` | `int32` | Code | ☑ | | | `CompanySizeCode` | `varchar2`(10) | Company Size Code | ☐ | Company Size Code. | | `CompanySizeDescription` | `varchar2`(60) | Company Size Description | ☐ | Company Size Description. | | `Country` | `varchar2`(30) | Country | ☐ | Country code. | | `Created` | `datetime` | Created | ☑ | Creation date. | | `CreatedUtc` | `datetime` | Created (UTC) | ☐ | Creation date in UTC. | | `Creator` | `guid` | Creator | ☐ | User ID of creator. | | `CreatorFullName` | `varchar2`(240) | Creator Full Name | ☐ | Name of creator. | | `Currency` | `varchar2`(30) | Currency | ☐ | Code of Currency. | | `Current` | `char` | Current | ☑ | | | `Customer` | `guid` | Customer | ☐ | Reference to customer (account). | | `CustomerCode` | `varchar2`(18) | Customer Code | ☐ | | | `CustomerName` | `varchar2`(50) | Customer Name | ☐ | | | `DatevAccountantNumber` | `varchar2`(30) | DATEV Accountant Number | ☐ | Accountant number DATEV (Germany). | | `DatevClientNumber` | `varchar2`(30) | DATEV Client Number | ☐ | Accountant number DATEV (Germany). | | `Description` | `varchar2` | Description | ☐ | | | `Division` | `int32` | Division ID | ☑ | Unique number of the Exact Online division. | | `DivisionCompanyCoCNumber` | `varchar2`(60) | Division Chamber of Commerce Number | ☐ | Chamber of commerce number of the Exact Online division. | | `DivisionCompanyIBANNumber` | `varchar2`(50) | Division IBAN Number | ☐ | IBAN number of the Exact Online division. | | `DivisionCompanyName` | `varchar2`(50) | Division Company Name | ☑ | Company name of the Exact Online division. | | `DivisionCompanyRSINNumber` | `varchar2`(9) | Division RSIN Number | ☐ | RSIN number of the Exact Online division. | | `DivisionCompanyVATNumber` | `varchar2`(35) | Division VAT Number | ☐ | VAT number of the Exact Online division. | | `DivisionCompanyWageTaxNumber` | `varchar2`(60) | Division Wage Tax Number | ☐ | Wage tax number of the Exact Online division. | | `DivisionHRLinkUnlinkDate` | `datetime` | Division HR Link/Unlink Date | ☐ | | | `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. | | `DivisionMoveDate` | `datetime` | Division Database Last Changed | ☐ | | | `DivisionName` | `varchar2`(50) | Administration Name | ☑ | Name of the Exact Online division. | | `DivisionOwnerCompanyName` | `varchar2`(50) | Subscription Holder Name | ☑ | Name of the customer account in division 1 owning the Exact Online subscription to which this division belongs. | | `DivisionOwnerCompanyNumber` | `varchar2`(18) | Subscription Holder Number | ☑ | Number of the customer account in division 1 owning the Exact Online subscription to which this division belongs. | | `DivisionShortName` | `int64` | Division Short Name | ☑ | Short name of the Exact Online division. | | `Email` | `varchar2`(128) | Email | ☐ | | | `Fax` | `varchar2`(25) | Fax | ☐ | Fax number. | | `Hid` | `int64` | HID | ☑ | | | `IsDossierDivision` | `char` | Is File Division | ☑ | | | `IsHRDivision` | `char` | Is HR Division | ☑ | | | `IsMainDivision` | `char` | Is Main Division | ☑ | | | `IsPracticeDivision` | `char` | Is Practice Division | ☑ | | | `Legislation` | `varchar2` | Legislation | ☐ | Legislation. | | `Modified` | `datetime` | Modified | ☑ | Last modified date. | | `ModifiedUtc` | `datetime` | Modified (UTC) | ☐ | Last modified date in UTC. | | `Modifier` | `guid` | Modifier | ☐ | User ID of modifier. | | `ModifierFullName` | `varchar2`(240) | Modified Full Name | ☐ | Name of modifier. | | `OBNumber` | `varchar2` | OB Number | ☐ | | | `Phone` | `varchar2`(25) | Phone | ☐ | Phone number. | | `Postcode` | `varchar2`(20) | Postal Code | ☐ | Postcode. | | `SbiCode` | `varchar2` | SBI Code | ☐ | SBI Code. | | `SbiDescription` | `varchar2` | SBI Description | ☐ | SBI Description. | | `SectorCode` | `varchar2` | Sector Code | ☐ | Sector Code. | | `SectorDescription` | `varchar2` | Sector Description | ☐ | Sector Description. | | `ShareCapital` | `double` | Share Capital | ☐ | Part of the capital of a company that comes from the issue of shares (France). | | `SiretNumber` | `varchar2` | Siret Number | ☐ | Siret Number of the division (France). | | `StartDate` | `datetime` | Start Date | ☐ | Date on which the division becomes active. | | `State` | `varchar2`(30) | State | ☐ | State/Province code. | | `Status` | `int32` | Status | ☑ | | | `SubsectorCode` | `varchar2` | Subsector Code | ☐ | Subsector Code. | | `SubsectorDescription` | `varchar2` | Subsector Description | ☐ | Subsector Description. | | `TaxOfficeNumber` | `varchar2`(4) | Tax Office Number | ☐ | Number of your local tax authority (Germany). | | `TaxReferenceNumber` | `varchar2`(30) | Tax Reference Number | ☐ | Local tax reference number (Germany). | | `TemplateCode` | `varchar2` | Template Code | ☐ | | | `VATNumber` | `varchar2`(35) | VAT Number | ☐ | VAT number. | | `Website` | `varchar2`(128) | Website | ☐ | Website. |