# ApprovalRequests
Search
- Catalog: `Robaws`
- Schema: `ApprovalRequests`
This is a read-only table function. The ROBAWS API may not support changing the data or the Invantive UniversalSQL driver for ROBAWS does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the ROBAWS API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `ApprovalRequests`. 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 |
|---|:---:|:---:|:---:|---|
| `open` | `` | ☐ | | Filter by open/closed status. True returns open approval requests, false returns closed approval requests, null returns all approval requests. |
| `searchText` | `` | ☐ | | |
| `sort` | `` | ☐ | | |
| `updatedFrom` | `` | ☐ | | |
| `userId` | `` | ☐ | | Ignored: the list always holds the approval requests of the user making the call. |
| `withArchived` | `` | ☐ | | |
## Columns of Table Function
The columns of the table function `ApprovalRequests` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `archivedAt` | `datetime` | Archived at | ☐ | |
| `companyId` | `varchar2` | Company ID | ☐ | |
| `createdAt` | `datetime` | Created at | ☐ | |
| `date` | `datetime` | Date | ☐ | |
| `deletedAt` | `datetime` | Deleted at | ☐ | |
| `expireDate` | `datetime` | Expiry Date | ☐ | |
| `extraFields` | `varchar2` | Extra Fields | ☐ | The JSON text of the nested object. |
| `id` | `varchar2` | ID | ☐ | |
| `invoiceNumber` | `varchar2` | Invoice Number | ☐ | |
| `lockedAt` | `datetime` | Locked at | ☐ | |
| `logicId` | `varchar2` | Logical ID | ☐ | |
| `projectInfo` | `varchar2` | Project Information | ☐ | |
| `resourceUnderApprovalRef` | `varchar2` | | ☐ | |
| `resourceUnderApproval_archivedAt` | `datetime` | | ☐ | |
| `resourceUnderApproval_assignedUserId` | `varchar2` | | ☐ | |
| `resourceUnderApproval_companyId` | `varchar2` | | ☐ | |
| `resourceUnderApproval_completed` | `char` | | ☐ | |
| `resourceUnderApproval_completionPercentage` | `decimal` | | ☐ | |
| `resourceUnderApproval_createdAt` | `datetime` | | ☐ | |
| `resourceUnderApproval_date` | `datetime` | | ☐ | |
| `resourceUnderApproval_deletedAt` | `datetime` | | ☐ | |
| `resourceUnderApproval_deliveryAddress` | `varchar2` | | ☐ | |
| `resourceUnderApproval_expectedDeliveryDate` | `datetime` | | ☐ | |
| `resourceUnderApproval_extraFields` | `varchar2` | | ☐ | The JSON text of the nested object. |
| `resourceUnderApproval_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. |
| `resourceUnderApproval_id` | `varchar2` | | ☐ | |
| `resourceUnderApproval_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. |
| `resourceUnderApproval_latestDeliveryDate` | `datetime` | | ☐ | |
| `resourceUnderApproval_lockedAt` | `datetime` | | ☐ | |
| `resourceUnderApproval_logicId` | `varchar2` | | ☐ | |
| `resourceUnderApproval_openInvoiceAmount` | `decimal` | | ☐ | |
| `resourceUnderApproval_reference` | `varchar2` | | ☐ | |
| `resourceUnderApproval_remark` | `varchar2` | | ☐ | |
| `resourceUnderApproval_sentViaWebshop` | `datetime` | | ☐ | |
| `resourceUnderApproval_status` | `varchar2` | | ☐ | |
| `resourceUnderApproval_supplierContactId` | `varchar2` | | ☐ | |
| `resourceUnderApproval_supplierId` | `varchar2` | | ☐ | |
| `resourceUnderApproval_toLocationId` | `varchar2` | | ☐ | |
| `resourceUnderApproval_totalAmountInvoiced` | `decimal` | | ☐ | |
| `resourceUnderApproval_totalExclVat` | `decimal` | | ☐ | |
| `resourceUnderApproval_totalInclVat` | `decimal` | | ☐ | |
| `resourceUnderApproval_type` | `varchar2` | | ☐ | |
| `resourceUnderApproval_updatedAt` | `datetime` | | ☐ | |
| `supplierId` | `varchar2` | Supplier ID | ☐ | |
| `totalVatExcl` | `decimal` | | ☐ | |
| `totalVatIncl` | `decimal` | | ☐ | |
| `updatedAt` | `datetime` | Updated at | ☐ | |