Evaluate a virtual custom field, for a document.
POST/api/v1/virtual-custom-fields/{virtual_custom_field_id}/executeregisters:read
Answers the rows the saved field shows on a document, as the document's Custom Fields tab does: the joined registers, cut to the rows the caller may read, filtered by the document's own values. Without document_id a field that filters by document values returns no rows. The document must be one the caller may read. Needs View Virtual Custom Fields.
| Scope | registers:read |
| Asynchronous | No |
| MCP tool | execute_virtual_custom_field |
| Portal permissions | view_virtual_custom_fields |
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
virtual_custom_field_id | path | string | Required | |
Docwize-Version | header | string (date) | Optional |
Request body
| Content type | Type |
|---|---|
application/json | VirtualCustomFieldExecuteInput |
Responses
| Status | Description | Body |
|---|---|---|
200 | Success. | application/json VirtualCustomFieldRows |
400 | invalid_version, malformed_json | application/problem+json Problem |
401 | token_expired, unauthenticated | application/problem+json Problem |
403 | forbidden, insufficient_scope, token_owner_inactive | application/problem+json Problem |
404 | not_found | application/problem+json Problem |
405 | method_not_allowed | application/problem+json Problem |
406 | not_acceptable | application/problem+json Problem |
413 | payload_too_large | application/problem+json Problem |
415 | unsupported_media_type | application/problem+json Problem |
421 | wrong_region | application/problem+json Problem |
422 | validation_failed | application/problem+json Problem |
500 | internal_error | application/problem+json Problem |
503 | tenant_unavailable, unavailable | application/problem+json Problem |
504 | timeout | application/problem+json Problem |
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
VirtualCustomFieldExecuteInput
| Field | Type | Required | Description |
|---|---|---|---|
document_id | string or null | Optional | The document the field is shown on: its values fill the field's document filters. You must be able to read it. Without one, a field that filters by document values returns no rows. |
limit | integer or null | Optional | Rows to return, 100 by default, 1000 at most. |
VirtualCustomFieldRows
| Field | Type | Required | Description |
|---|---|---|---|
row_count | integer | Required | Rows in rows. ≥ -2147483648; ≤ 2147483647 |
rows | array of object | Required | One object per row, keyed by the names the config gives the columns (new_name of its rename_mapping) and, for a column it does not rename, by the custom field's name (register name - field name when two columns share a name). Dates are text, decimals strings. |
total_rows | integer | Required | Rows the field produced for the caller; more than row_count when limit cut the answer. ≥ -2147483648; ≤ 2147483647 |