# SubcontractContractHistoryEntriesBySubcontractorId: Bouw7 Sub-contract Contract History Entries by Sub-contract or ID Returns a list of subcontractor contract history entries associated with the given ID. Returns a list of subcontractor contract history entries. - Catalog: `Bouw7` - Schema: `Contract` - Label: Sub-contract Contract History Entries by Sub-contract or 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 `SubcontractContractHistoryEntriesBySubcontractorId`. 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` | `` | ☑ | | Subcontractor contract ID | ## Columns of Table Function The columns of the table function `SubcontractContractHistoryEntriesBySubcontractorId` are shown below. Each column has an SQL data type. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `contract_acceptedAt` | `varchar2` | Contract Accepted at | ☐ | Datetime when contract was accepted. | | `contract_contractNumber` | `varchar2` | Contract Number | ☐ | The contract number of the contract. | | `contract_cost` | `varchar2` | Contract Cost | ☐ | The cost of the contract. | | `contract_createdAt` | `datetime` | Contract Created at | ☐ | The creation time of the entity. | | `contract_createdBy` | `varchar2` | Contract Created by | ☐ | The user that created the entity. | | `contract_createDeliveryTicket` | `char` | Contract Create Delivery Ticket | ☐ | Whether or not to create a delivery ticket. | | `contract_deniedAt` | `varchar2` | Contract Denied at | ☐ | Datetime when contract was denied. | | `contract_description` | `varchar2` | Contract Description | ☐ | The description of the contract. | | `contract_expectedCompletionDate` | `datetime` | Contract Expected Completion Date | ☐ | The expected completion date of the subcontractor contract. | | `contract_id` | `int64` | Contract ID | ☐ | The ID of the subcontractor contract. | | `contract_internalNote` | `varchar2` | | ☐ | Internal note about the contract. | | `contract_language` | `varchar2` | Contract Language | ☐ | The locale used by this contract, e.g.: nl-NL. | | `contract_mailSent` | `char` | Contract Mail Sent | ☐ | Flag to indicate if mail was sent. | | `contract_mailSentAt` | `varchar2` | Contract Mail Sent at | ☐ | The date the contract was sent. | | `contract_mailSentBy` | `varchar2` | Contract Mail Sent by | ☐ | The user that sent the email. | | `contract_name` | `varchar2`(255) | Contract Name | ☐ | The name of the contract. | | `contract_number` | `varchar2` | Contract Number | ☐ | Number of the contract. | | `contract_paymentAgreement` | `varchar2` | Contract Payment Agreement | ☐ | The payment agreement of the contract. | | `contract_startDate` | `datetime` | Contract Start Date | ☐ | The starting date of the subcontractor contract. | | `contract_status` | `int64` | Contract Status | ☐ | Status of the contract. | | `contract_type` | `int64` | Contract Type | ☐ | Type of the contract. | | `contract_updatedAt` | `datetime` | Contract Updated at | ☐ | The last updated time of the entity. | | `contract_updatedBy` | `varchar2` | Contract Updated by | ☐ | The user that last updated the entity. | | `createdAt` | `datetime` | Created at | ☐ | The creation time of the entity. | | `createdBy` | `varchar2` | Created by | ☐ | The user that created the entity. | | `id` | `int64` | ID | ☐ | The ID of the subcontract history entry. | | `message` | `varchar2` | Message | ☐ | The message of the history entry. | | `updatedAt` | `datetime` | Updated At | ☐ | The last updated time of the entity. | | `updatedBy` | `varchar2` | Updated by | ☐ | The user that last updated the entity. |