# ContactsByDomainId: Yuki Contacts by Domain ID
- Catalog: `Yuki`
- Schema: `Contact`
- Label: Contacts by Domain ID
This is a read-only table function. The Yuki API may not support changing the data or the Invantive UniversalSQL driver for Yuki does not cover it. In the latter case, please use the table NativePlatformScalarRequests to upload data to the Yuki API.
## Parameters of Table Function
The following parameters can be used to control the behaviour of the table function `ContactsByDomainId`. 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 |
|---|:---:|:---:|:---:|---|
| `active` | `` | ☐ | | Both or Active or Inactive |
| `domainId` | `` | ☑ | | |
| `modifiedAfter` | `` | ☐ | | |
| `searchOption` | `` | ☐ | | All or Name or City or Postcode or Tag or Email or Website or Phone or Code or CoCNumber or VATNumber or BankAccount or ID |
| `searchValue` | `` | ☐ | | |
| `sortOrder` | `` | ☐ | | Name or LastName or CreatedAsc or CreatedDesc or ModifiedAsc or ModifiedDesc or HID |
## Columns of Table Function
The columns of the table function `ContactsByDomainId` are shown below. Each column has an SQL data type.
| Name | Data Type | Label | Required | Documentation |
|---|:---:|---|:---:|---|
| `ADDRESSLINE1` | `varchar2` | | ☐ | |
| `ADDRESSLINE2` | `varchar2` | Address Line 2 | ☐ | |
| `BACKOFFICESTATUS` | `varchar2` | | ☐ | |
| `BIC` | `varchar2` | | ☐ | |
| `CITY` | `varchar2` | City | ☐ | |
| `COCNUMBER` | `varchar2` | CoC Number | ☐ | |
| `CODE` | `varchar2` | Code | ☐ | |
| `COUNTRY` | `varchar2` | Country | ☐ | |
| `CREATED` | `datetime` | | ☐ | |
| `DOMAINID` | `varchar2(36)` | Domain ID | ☐ | |
| `DOMAINNAME` | `varchar2(240)` | Domain Name | ☐ | |
| `EMAILHOME` | `varchar2` | | ☐ | |
| `EMAILWORK` | `varchar2` | | ☐ | |
| `FIRSTNAME` | `varchar2` | | ☐ | |
| `HID` | `int32` | Human ID | ☐ | |
| `IBAN` | `varchar2` | | ☐ | |
| `ID` | `guid` | ID | ☐ | |
| `INCOMETAXNUMBER` | `varchar2` | | ☐ | |
| `ISCUSTOMER` | `char` | | ☐ | |
| `ISSUPPLIER` | `char` | | ☐ | |
| `LASTNAME` | `varchar2` | | ☐ | |
| `MAILADDRESSLINE1` | `varchar2` | | ☐ | |
| `MAILADDRESSLINE2` | `varchar2` | | ☐ | |
| `MAILCITY` | `varchar2` | Mail City | ☐ | |
| `MAILPOSTCODE` | `varchar2` | Mail ZIP Code | ☐ | |
| `MAINCONTACTPERSON` | `varchar2` | | ☐ | |
| `MIDDLENAME` | `varchar2` | | ☐ | |
| `MOBILEHOME` | `varchar2` | | ☐ | |
| `MOBILEWORK` | `varchar2` | | ☐ | |
| `MODIFIED` | `datetime` | | ☐ | |
| `NAME` | `varchar2` | Name | ☐ | |
| `PHONEHOME` | `varchar2` | | ☐ | |
| `PHONEWORK` | `varchar2` | | ☐ | |
| `POSTCODE` | `varchar2` | ZIP Code | ☐ | |
| `TAGS` | `varchar2` | Tags | ☐ | |
| `TYPE` | `varchar2` | Type | ☐ | |
| `VATNUMBER` | `varchar2` | VAT Number | ☐ | |
| `WEBSITE` | `varchar2` | | ☐ | |