Find the records that hold values of a List Manager list.
The List Manager's find by value: the documents, contacts or projects that hold any of the values sent (list and values, both required), by their IDs in ascending order. Documents are found through the caller's document security and projects through the caller's project access, as the Portal's find does; contacts have no per-record security. The Portal reads every holder to answer, so a value held by very many documents is slow. Each item sets the member of its kind: document_id, or organisation_id with contact_id (null when the organisation's own row holds the value), or project_id. Read a record with get_document, list_contacts (filter by organisation_id) or get_project. include=total_count adds the number of records you can read, which list_list_value_usage counts the same way. Needs the same permissions as list_list_value_usage for the list.
| |
|---|
| Scope | lookup_lists:read |
| Asynchronous | No |
| MCP tool | search_list_value_holders |
| Paging | snapshot |
| Default order | document_id, organisation_id, contact_id, project_id |
Parameters
| Name | In | Type | Required | Description |
|---|
limit | query | integer | Optional | Default: 50; ≥ 1 |
cursor | query | string | Optional | |
include | query | array of string: total_count | Optional | total_count asks for the number of items the whole list holds for the caller under the same filters (not only this page), counted under the same access rules as the items; the answer then carries total_count. Left out, it is not counted. |
Docwize-Version | header | string (date) | Optional | |
Request body
Responses
200 body
| Field | Type | Required | Description |
|---|
items | array of ListValueHolder | Required | |
next_cursor | string or null | Required | |
total_count | integer | Optional | total_count asks for the number of items the whole list holds for the caller under the same filters (not only this page), counted under the same access rules as the items; the answer then carries total_count. Left out, it is not counted. ≥ 0; ≤ 2147483647 |
warnings | array of object | Required | |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
ListValueHolder
| Field | Type | Required | Description |
|---|
contact_id | string or null | Required | The contact, for a list whose holders are contacts; null when the organisation's own row holds the value. |
document_id | string or null | Required | The document, for a list whose holders are documents. Read it with get_document. |
organisation_id | string or null | Required | The organisation, for a list whose holders are contacts: the one the contact belongs to, or the organisation itself when contact_id is null. |
project_id | string or null | Required | The project, for a list whose holders are projects. |
| Field | Type | Required | Description |
|---|
list | string | Required | The list: document_prefix, document_type, document_status, post_review_status, cross_reference_reason, contact, contact_designation, business_type, contact_category, contact_category_status, country, project_type or project_status. |
values | array of string | Required | The values to find the holders of, written as list_list_value_usage shows them: a record is found when it holds any of them. A document_prefix is matched as the start of the document number; a document_type without a sub type finds every document of the type, sub types included; project values ignore case. |