> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SearchCriteria table

> Criteria storage for Selection and other Find mechanisms

## SearchCriteria Table (201)

Criteria storage for Selection and other Find mechanisms

## Fields

| Name                      | Description                                                           | Type                                    | Nullable |
| ------------------------- | --------------------------------------------------------------------- | --------------------------------------- | :------: |
| SearchCriteria\_id        | Primary key                                                           | PK                                      |    No    |
| name                      | Name of this criteria collection                                      | String(254)                             |    No    |
| textId                    | Extra information (descriptive) for this Criteria set                 | FK [text](./text.mdx)                   |    Yes   |
| ownerType                 | Selection, Reporter, FindProject, ...                                 | Enum [OwnerType](./enums/ownertype.mdx) |    Yes   |
| ownerTable                | Table number of table that owns these criteria                        | TableNumber                             |    Yes   |
| ownerId                   | Record ID in ownerTable that owns these criteria                      | RecordId                                |    Yes   |
| registered                | Registered when                                                       | UtcDateTime                             |    No    |
| registered\_associate\_id | Registered by whom                                                    | FK [associate](./associate.mdx)         |    No    |
| updated                   | Last updated when                                                     | UtcDateTime                             |    No    |
| updated\_associate\_id    | Last updated by whom                                                  | FK [associate](./associate.mdx)         |    No    |
| updatedCount              | Number of updates made to this record                                 | UShort                                  |    No    |
| ownerName                 | Name of owner; this is the archive provider name in NetServer/SIX.web | String(254)                             |    Yes   |
| ownerGuiName              | Name of the owner GUI control, this is the GUI XML id in SIX.web      | String(254)                             |    Yes   |
| displayName               | Display name when these criteria are a saved archive filter           | String(254)                             |    Yes   |

<img src="https://mintcdn.com/superofficeas/3ZhivzBeXAvFeVZx/media/loc/en/database/tables/SearchCriteria.png?fit=max&auto=format&n=3ZhivzBeXAvFeVZx&q=85&s=65ee5eb1dc100c06696fbde24bb5e88e" alt="SearchCriteria table relationship diagram" width="744" height="705" data-path="media/loc/en/database/tables/SearchCriteria.png" />

## Indexes

| Fields                                       | Types                                    | Description |
| -------------------------------------------- | ---------------------------------------- | ----------- |
| ownerId, ownerName, ownerGuiName             | RecordId, String(254), String(254)       | Index       |
| ownerId, ownerTable, ownerType, ownerGuiName | RecordId, TableNumber, Enum, String(254) | Index       |

## Relationships

| Table                                        | Description                                                        |
| -------------------------------------------- | ------------------------------------------------------------------ |
| [associate](./associate)                     | Employees, resources and other users - except for External persons |
| [SearchCriteriaGroup](./searchcriteriagroup) | Criteria storage for Selection and other Find mechanisms           |
| [text](./text)                               | Long text fields from all over the system                          |

## Replication Flags

* Area Management controlled table. Contents replicated to satellites and traveller databases.
* Replicate changes UP from satellites and travellers back to central.
* Copy to satellite and travel prototypes.

## Security Flags

* No access control via user's Role.


## Related topics

- [Dynamic selections](/en/api/search/selection/dynamic-selections.md)
- [SearchCriteriaGroup table](/en/database/tables/searchcriteriagroup.md)
- [Typical search](/en/api/search/find-selection/typical-search.md)
- [Enum values for OwnerType](/en/database/tables/enums/ownertype.md)
- [text table](/en/database/tables/text.md)
- [Criteria](/en/api/archive-providers/reference/criteria.md)
