Count the records that hold each value of a List Manager list.
このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。
The List Manager's count column for one list (list, required: 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, project_status): one row per value with how many records hold it, as the Portal counts them. Documents and projects are counted only if the caller can read them (through document security and project access, the records search_list_value_holders finds; the Portal's own screen counts every one), and an entry that no record holds appears, with a count of 0, only for document_type (types and sub types) and the contact lists. Needs the permissions the Portal asks for the list: View Document Metadata with the list's own View permission for a document list (View Document Prefixes, View Document Types, View Document Statuses, View Document Priority Statuses for post_review_status, View Cross Reference Reasons, or View Contacts for contact), View Contacts with View Contact Designations, View Business Types, View Contact Categories, View Contact Category Statuses or View Countries for a contact list, View Projects with View Project Types or View Project Statuses for a project list. A client matches a row to its entry by value, the text the records hold. Use it to see which entries are unused before delete_document_status and its siblings, and to see what a move-documents would touch.
| |
|---|
| スコープ | lookup_lists:read |
| 非同期 | いいえ |
| MCP ツール | list_list_value_usage |
| ページング | snapshot |
| 既定の並び順 | value |
| 並べ替えに使えるフィールド | value, count |
パラメーター
| 名前 | 場所 | 型 | 必須 | 説明 |
|---|
list | query | string | 必須 | The list to count: 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. |
limit | query | integer | 任意 | 既定値: 50; ≥ 1 |
cursor | query | string | 任意 | |
sort | query | string | 任意 | Comma-separated sort fields, - for descending. |
Docwize-Version | header | string (date) | 任意 | |
If-None-Match | header | string | 任意 | Answers 304 when the representation is unchanged (resources that publish an ETag). |
200 の本文
| フィールド | 型 | 必須 | 説明 |
|---|
items | ListValueUsage の配列 | 必須 | |
next_cursor | string または null | 必須 | |
warnings | object の配列 | 必須 | |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
ListValueUsage
| フィールド | 型 | 必須 | 説明 |
|---|
count | integer | 必須 | How many records hold the value. For documents and projects this counts only the ones the caller can read (the Portal's own screen counts every record). For cross_reference_reason it is cross-reference links, and for document_type a type's own row counts only documents with no sub type. ≥ -2147483648; ≤ 2147483647 |
holders | string | 必須 | What count counts: documents, contacts or projects. A contact is a row of the Portal's contact table: an organisation's own row counts as one. |
value | string または null | 必須 | The text the records hold, as the Portal's List Manager keys it: the entry's name; for document_type a sub type reads 'Type > Sub type'; for contact 'Organisation > Contact' or 'Organisation'; for cross_reference_reason the reason's ID as text. null counts the records that hold no value. |