# ProjectWBSByProjectAndWBS: Exact Online WBS by Project and WBS
- Catalog: `ExactOnlineREST`
- Schema: `Project`
- Primary Keys: `ID`
- Label: WBS by Project and WBS
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 `ProjectWBSByProjectAndWBS`. 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 |
|---|:---:|:---:|:---:|---|
| `division` | `int32` | ☐ | | ID of the division to retrieve data for. |
| `projectId` | `guid` | ☑ | | |
| `projectWBSId` | `guid` | ☑ | | |
| `wbsType` | `int16` | ☑ | | |
## Columns of Table Function
The columns of the table function `ProjectWBSByProjectAndWBS` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `AdditionalInvoicing` | `int16` | Additional Invoicing | ☐ | Indicates whether to allow additional invoice on this wbs. |
| `BaselineDate` | `datetime` | Baseline Date | ☐ | Baseline date of this deliverable. |
| `BlockEntry` | `char` | Block Entry of Time and Cost | ☐ | Block time and cost entries. |
| `BlockRebilling` | `char` | Block Rebilling | ☐ | Block rebilling. |
| `BudgetOverrunHours` | `int16` | Budget Overrun Hours Status | ☐ | 10-Allowed, 20-Not Allowed. |
| `Completed` | `int16` | Completed | ☐ | Indicates whether the project WBS is completed. |
| `Cost` | `double` | Cost | ☐ | Budget cost of the WBS. |
| `Created` | `datetime` | Created | ☐ | Creation date. |
| `CreatedUtc` | `datetime` | Created (UTC) | ☐ | Creation date in UTC. |
| `Creator` | `guid` | Creator | ☐ | User ID of creator. |
| `CustomField` | `varchar2` | Custom Field | ☐ | |
| `DefaultItem` | `guid` | Default Item | ☐ | Default Item to used for timecost entry. |
| `DefaultItemIsMandatory` | `int16` | Default Item is Mandatory | ☐ | |
| `Description` | `varchar2` | Description | ☐ | Description of the project WBS. |
| `Division` | `int32` | Division | ☐ | Division code. |
| `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. |
| `DivisionLabel` | `varchar2`(128) | Division Label | ☑ | Label of the Exact Online division. |
| `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. |
| `EndDate` | `datetime` | End Date | ☐ | EndDate of the WBS.If it is a deliverable then EndDate is the lastest EndDate of its children. |
| `Hours` | `double` | Budgeted Hours | ☐ | Budget quantity of the WBS. |
| `ID` | `guid` | ID | ☑ | Primary key. |
| `InvoiceMethod` | `int16` | Invoice Method | ☐ | |
| `IsBaseline` | `int16` | Is Baseline | ☐ | Indicates whether this is a baseline. |
| `Milestone` | `int16` | Milestone | ☐ | Indicates whether this is a milestone. |
| `Modified` | `datetime` | Modified | ☐ | Last modified date. |
| `ModifiedUtc` | `datetime` | Modified (UTC) | ☐ | Last modified date in UTC. |
| `Modifier` | `guid` | Modifier | ☐ | User ID of modifier. |
| `Notes` | `varchar2` | Notes | ☐ | For additional information about wbs. |
| `Parent` | `guid` | Parent | ☐ | ID of the parent WBS. |
| `Project` | `guid` | Project | ☐ | ID of project. |
| `ProjectTerm` | `guid` | Project Term ID | ☐ | ID of invoice planning. |
| `PurchaseMarkupPercentage` | `double` | Purchase Markup (%) | ☐ | Markup percentage. |
| `PurchasePrice` | `double` | Purchase Price | ☐ | |
| `Quantity` | `double` | Quantity | ☐ | |
| `Revenue` | `double` | Revenue | ☐ | Revenue of the WBS. |
| `StartDate` | `datetime` | Start Date | ☐ | Startdate of the WBS.If it is a deliverable then StartDate is the earliest StartDate of its children. |
| `Supplier` | `guid` | Supplier | ☐ | |
| `TimeQuantityToAlert` | `double` | Time Quantity to Alert | ☐ | Alert when exceeding this time quantity. |
| `Type` | `int16` | Type | ☐ | Type: 1-Deliverable, 2-Activity, 3-Expense. |