See what running a record template still needs.
Checks a run the way the Record Runner does before it starts, and creates nothing: which register sections still lack values, which recipients the workflows ask for (with the recipient types each takes and, for an input that asks for a member of a group, the group's members), which folder and file sections still need folder_ids or files, and which columns of the rows given would stay blank. ready is true when execute_record_template would start. The record must be granted to one of your groups, and a record the server cannot run (a drawing, a location, a distribution to send, several template documents) is 409 naming its sections. Needs Execute Records.
| |
|---|
| Scope | records:read |
| Asynchronous | No |
| MCP tool | preview_record_template |
| Portal permissions | execute_records |
Parameters
| Name | In | Type | Required | Description |
|---|
record_template_id | path | string | Required | |
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 |
|---|
custom_field_template_id | string | Required | The register of a custom_field section of the record. |
row_ids | array of string | Optional | Existing rows of a GridLink register whose section links rows instead of creating them; you must be able to see them. |
rows | array of RecordRunRowInput | Optional | The new rows. A register the section does not link (a Grid register, or a GridLink one whose section creates rows) takes rows; a Grid register that allows one row takes one. Fields the section hides cannot be named. |
| Field | Type | Required | Description |
|---|
document_ids | array of string | Required | Existing documents you may read, whose file is copied onto the new document (an upload section takes one document; run the record once per file) or onto new attachment documents (an attachment section takes several). |
section_index | integer | Required | The position (from 0) of an upload_section or attachment_section in the template's sections array. ≥ -2147483648; ≤ 2147483647 |
RecordRunGroupMember
| Field | Type | Required | Description |
|---|
email | string or null | Required | |
user_id | string | Required | |
| Field | Type | Required | Description |
|---|
group_id | string | Required | |
member_count | integer | Required | ≥ -2147483648; ≤ 2147483647 |
members | array of RecordRunGroupMember | Required | The first members, as the picker lists them. |
members_truncated | boolean | Required | There are more members than members lists. |
name | string or null | Required | |
| Field | Type | Required | Description |
|---|
allow_no_selection | boolean | Required | The input may be left unanswered. |
collectable | boolean | Required | False for an input a run cannot collect: the run is refused. |
group | RecordRunInputGroup or null | Required | For an input that asks for a member of a group: the group and its members. |
help_notes | string or null | Required | |
input_key | string | Required | |
input_type | string or null | Required | |
recipient_types | array of string | Required | The recipient types the input takes, as a recipient names them. |
selection_type | string or null | Required | |
RecordRunMissingSection
| Field | Type | Required | Description |
|---|
requires | string | Required | |
section | string | Required | The section's name, or its position when it has none. |
RecordRunPreview
| Field | Type | Required | Description |
|---|
folder_ids | array of string | Required | The folders the document would be filed into. |
missing_custom_field_template_ids | array of string | Required | Register sections whose values the request has not given. |
missing_sections | array of RecordRunMissingSection | Required | Folder and file sections that still need folder_ids or files. |
missing_workflow_inputs | array of RecordRunWorkflowNeeds | Required | |
ready | boolean | Required | A run with these values would start. |
unfilled_columns | array of RecordRunUnfilledColumns | Required | Columns of the rows given that would stay blank; not a refusal. |
| Field | Type | Required | Description |
|---|
contact_id | string or null | Optional | For type contact. |
distribution_group_id | string or null | Optional | For type distribution_group. |
email | string or null | Optional | For type external: the address invited by email; needs Workflows - Assign External. |
group_id | string or null | Optional | For type group: a user group (a workflow role). For type external: the external group the invited person joins. |
type | string | Required | user, group, contact, distribution_group or external (open enum). The input takes only the types its recipient_types lists. |
user_id | string or null | Optional | For type user: an active user. An input that asks for a member of a group takes only a member of that group. |
| Field | Type | Required | Description |
|---|
custom_fields | array of RecordRunCustomFieldInput | Optional | One entry per register section of the record that asks for values. |
files | array of RecordRunFilesInput | Optional | The files of upload and attachment sections. |
folder_ids | array of string | Optional | The folders to file the document into, for a folder section that asks at run time; folders the section pins are applied anyway. You must be able to use them. |
workflow_inputs | array of RecordRunWorkflowInputInput | Optional | The recipients the started workflows ask for. |
| Field | Type | Required | Description |
|---|
values | object | Optional | The values keyed by the field's name, byte for byte, in the forms create_custom_field_template_row takes. |
values_by_custom_field | object | Optional | The values keyed by custom_field_id. A field may be named once, by name or by ID. |
RecordRunUnfilledColumns
| Field | Type | Required | Description |
|---|
custom_field_template_id | string | Required | |
field_names | array of string | Required | |
| Field | Type | Required | Description |
|---|
input_key | string | Required | The input's description, as preview_record_template lists it. |
recipients | array of RecordRunRecipientInput | Required | Who the input goes to. An empty list leaves an input that allows no selection unanswered. |
workflow_template_id | string | Required | The workflow template of a template_workflow_section of the record. |
RecordRunWorkflowNeeds
| Field | Type | Required | Description |
|---|
inputs | array of RecordRunInputNeed | Required | |
workflow_template_id | string | Required | |