Try a lookup list that is not saved.
The Lookup List builder's Test button: runs the virtual view the list would read its values from, as the Portal's builder does, and answers the rows it returns for context, up to limit. Nothing is saved. Needs Test Lookup Lists. A view that is not found is a 422 naming the ID supplied; one the Portal cannot build or run is a 422 with the Portal's message (without the statement). A view with no query returns no rows. The rows are the view's own, whatever their columns: a list also needs a Key and a Value column to be searched.
| |
|---|
| Scope | lookup_lists:read |
| Asynchronous | No |
| MCP tool | test_lookup_lists |
| Portal permissions | test_lookup_lists |
Parameters
| Name | In | Type | Required | Description |
|---|
Docwize-Version | header | string (date) | Optional | |
Request body
Responses
Errors
The problem codes this operation can answer with. Each code links to its page.
Schemas
| Field | Type | Required | Description |
|---|
context | object | Optional | The values the form has captured so far. See the list of values for what each key is. |
limit | integer or null | Optional | Rows to return, 100 by default, 1000 at most. |
virtual_view_id | string | Required | The virtual view the list would read its values from. |
LookupListTestRows
| 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 view's own column names. Dates are text and decimals strings. |
total_rows | integer | Required | Rows the view returned for the caller; more than row_count when limit cut the answer. ≥ -2147483648; ≤ 2147483647 |