# Offers: ROBAWS Offers Search - Catalog: `Robaws` - Schema: `Offers` - Primary Keys: `id` - Label: Offers Can retrieve data and change data using insert, update and delete. ## Parameters of Table Function The following parameters can be used to control the behaviour of the table function `Offers`. 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 | |---|:---:|:---:|:---:|---| | `calculated` | `` | ☐ | | | | `clientId` | `` | ☐ | | | | `groupId` | `` | ☐ | | | | `projectId` | `` | ☐ | | | | `salesInvoiceId` | `` | ☐ | | | | `searchText` | `` | ☐ | | | | `sort` | `` | ☐ | | | | `updatedFrom` | `` | ☐ | | | | `withArchived` | `` | ☐ | | | ## Columns of Table Function The columns of the table function `Offers` are shown below. Each column has an SQL data type. A new non-null value must be provided for every required column at all times during insert and update. | Name | Data Type | Label | Required | Documentation | |---|:---:|---|:---:|---| | `activeOnProject` | `char` | Active on Project | ☐ | | | `addressDistance_unit` | `varchar2` | | ☐ | | | `addressDistance_value` | `int32` | | ☐ | | | `address_addressLine1` | `varchar2` | Address Line 1 | ☐ | | | `address_addressLine2` | `varchar2` | Address Line 2 | ☐ | | | `address_city` | `varchar2` | City | ☐ | | | `address_country` | `varchar2` | Country | ☐ | | | `address_latitude` | `double` | | ☐ | | | `address_longitude` | `double` | | ☐ | | | `address_postalCode` | `varchar2` | | ☐ | | | `archivedAt` | `datetime` | Archived at | ☐ | | | `assignedUserId` | `varchar2` | Assigned User ID | ☐ | | | `calculated` | `char` | Calculated | ☐ | | | `calculationStatus` | `varchar2` | | ☐ | | | `clientContactId` | `varchar2` | Client Contact ID | ☐ | | | `clientId` | `varchar2` | Client ID | ☐ | | | `clientReference` | `varchar2` | Customer Reference | ☐ | | | `commissionAmount` | `decimal` | | ☐ | | | `commission` | `decimal` | Commission | ☐ | | | `companyId` | `varchar2` | Company ID | ☐ | | | `createdAt` | `datetime` | Created at | ☐ | | | `currency` | `varchar2` | Currency | ☐ | | | `date` | `datetime` | Date | ☐ | | | `deadlineDate` | `datetime` | Deadline Date | ☐ | | | `deletedAt` | `datetime` | Deleted at | ☐ | | | `endClientContactId` | `varchar2` | End Client Contact ID | ☐ | | | `endClientId` | `varchar2` | End Client ID | ☐ | | | `expireDate` | `datetime` | Expiry Date | ☐ | | | `extraFields` | `varchar2` | Extra Fields | ☐ | The JSON text of the nested object. | | `followUpDate` | `datetime` | Follow-up Date | ☐ | | | `footerText` | `varchar2` | | ☐ | When reading, only present if requested via 'include' query parameter, otherwise null. HTML content. Embedded images are resolved to URLs based on the 'x-robaws-html-image-mode' request header: TEMPORARY_URL (default) returns time-limited presigned URLs that require no authentication; PERMANENT_URL returns stable URLs that require an authenticated session; NONE returns the stored HTML, where each image is an <img> with a data-robaws-id and an empty src — keep that tag and its data-robaws-id when writing the HTML back, or the image is lost. Any other value (e.g. BASE64_INLINE) returns 400 Bad Request. When writing, omit it or send null to keep the current text; send an empty string to clear it. | | `groupId` | `varchar2` | | ☐ | | | `id` | `varchar2` | ID | ☐ | | | `introText` | `varchar2` | | ☐ | When reading, only present if requested via 'include' query parameter, otherwise null. HTML content. Embedded images are resolved to URLs based on the 'x-robaws-html-image-mode' request header: TEMPORARY_URL (default) returns time-limited presigned URLs that require no authentication; PERMANENT_URL returns stable URLs that require an authenticated session; NONE returns the stored HTML, where each image is an <img> with a data-robaws-id and an empty src — keep that tag and its data-robaws-id when writing the HTML back, or the image is lost. Any other value (e.g. BASE64_INLINE) returns 400 Bad Request. When writing, omit it or send null to keep the current text; send an empty string to clear it. | | `lockedAt` | `datetime` | Locked at | ☐ | | | `logicId` | `varchar2` | Logical ID | ☐ | | | `marginArticleCost` | `double` | | ☐ | | | `marginMaterialCost` | `double` | | ☐ | | | `marginOtherCost` | `double` | | ☐ | | | `marginSubcontractorCost` | `double` | | ☐ | | | `marginWorkCost` | `double` | | ☐ | | | `projectId` | `varchar2` | Project ID | ☐ | | | `receivedDate` | `datetime` | Received Date | ☐ | | | `statistics_totalArticleCost` | `decimal` | | ☐ | | | `statistics_totalLaborCost` | `decimal` | | ☐ | | | `statistics_totalLaborHours` | `decimal` | | ☐ | | | `statistics_totalMaterialCost` | `decimal` | | ☐ | | | `statistics_totalSubcontractorCost` | `decimal` | | ☐ | | | `statusDetails_color` | `varchar2` | | ☐ | | | `statusDetails_name` | `varchar2` | | ☐ | | | `statusSuccessPercentage` | `decimal` | Status Success Percentage | ☐ | | | `status` | `varchar2` | Status | ☐ | | | `tenderDate` | `datetime` | Tender Date | ☐ | | | `title` | `varchar2` | Title | ☐ | | | `totalCostPrice` | `decimal` | Total Cost Price | ☐ | | | `totalExclVat` | `decimal` | Total excluding VAT | ☐ | | | `totalInclVat` | `decimal` | Total including VAT | ☐ | | | `totalIndirectCosts` | `decimal` | Total Indirect Costs | ☐ | | | `totalMargin` | `decimal` | Total Margin | ☐ | | | `updatedAt` | `datetime` | Updated at | ☐ | | ## Foreign Keys The values of these columns refer to a row of another table. | Columns | Referenced Table | Referenced Columns | Guarantee | |---|---|---|---| | `assignedUserId` | [[Users-Users\|Users.Users]] | `id` | In words only: The referenced row, for as long as Robaws still lists it: a deleted or purged row is no longer listed, and a document may keep referring to it. | | `clientContactId` | [[Contacts-Contacts\|Contacts.Contacts]] | `id` | In words only: The referenced row, for as long as Robaws still lists it: a deleted or purged row is no longer listed, and a document may keep referring to it. | | `clientId` | [[Clients-Clients\|Clients.Clients]] | `id` | In words only: The referenced row, for as long as Robaws still lists it: a deleted or purged row is no longer listed, and a document may keep referring to it. | | `companyId` | [[Companies-Companies\|Companies.Companies]] | `id` | Declared by the connector, not enforced by the platform | | `endClientContactId` | [[Contacts-Contacts\|Contacts.Contacts]] | `id` | Declared by the connector, not enforced by the platform | | `endClientId` | [[Clients-Clients\|Clients.Clients]] | `id` | Declared by the connector, not enforced by the platform |