Skip to main content

See what running a record template still needs.

POST/api/v1/record-templates/{record_template_id}/previewrecords:read

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.

Scoperecords:read
AsynchronousNo
MCP toolpreview_record_template
Portal permissionsexecute_records

Parameters​

NameInTypeRequiredDescription
record_template_idpathstringRequired
Docwize-Versionheaderstring (date)Optional

Request body​

Content typeType
application/jsonRecordRunRequestInput

Responses​

StatusDescriptionBody
200Success.application/json RecordRunPreview
400invalid_version, malformed_jsonapplication/problem+json Problem
401token_expired, unauthenticatedapplication/problem+json Problem
403forbidden, insufficient_scope, token_owner_inactiveapplication/problem+json Problem
404not_foundapplication/problem+json Problem
405method_not_allowedapplication/problem+json Problem
406not_acceptableapplication/problem+json Problem
409conflictapplication/problem+json Problem
413payload_too_largeapplication/problem+json Problem
415unsupported_media_typeapplication/problem+json Problem
421wrong_regionapplication/problem+json Problem
422validation_failedapplication/problem+json Problem
500internal_errorapplication/problem+json Problem
503tenant_unavailable, unavailableapplication/problem+json Problem
504timeoutapplication/problem+json Problem

Errors​

The problem codes this operation can answer with. Each code links to its page.

Schemas​

RecordRunCustomFieldInput​

FieldTypeRequiredDescription
custom_field_template_idstringRequiredThe register of a custom_field section of the record.
row_idsarray of stringOptionalExisting rows of a GridLink register whose section links rows instead of creating them; you must be able to see them.
rowsarray of RecordRunRowInputOptionalThe 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.

RecordRunFilesInput​

FieldTypeRequiredDescription
document_idsarray of stringRequiredExisting 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_indexintegerRequiredThe position (from 0) of an upload_section or attachment_section in the template's sections array. ≥ -2147483648; ≤ 2147483647

RecordRunGroupMember​

FieldTypeRequiredDescription
emailstring or nullRequired
user_idstringRequired

RecordRunInputGroup​

FieldTypeRequiredDescription
group_idstringRequired
member_countintegerRequired≥ -2147483648; ≤ 2147483647
membersarray of RecordRunGroupMemberRequiredThe first members, as the picker lists them.
members_truncatedbooleanRequiredThere are more members than members lists.
namestring or nullRequired

RecordRunInputNeed​

FieldTypeRequiredDescription
allow_no_selectionbooleanRequiredThe input may be left unanswered.
collectablebooleanRequiredFalse for an input a run cannot collect: the run is refused.
groupRecordRunInputGroup or nullRequiredFor an input that asks for a member of a group: the group and its members.
help_notesstring or nullRequired
input_keystringRequired
input_typestring or nullRequired
recipient_typesarray of stringRequiredThe recipient types the input takes, as a recipient names them.
selection_typestring or nullRequired

RecordRunMissingSection​

FieldTypeRequiredDescription
requiresstringRequired
sectionstringRequiredThe section's name, or its position when it has none.

RecordRunPreview​

FieldTypeRequiredDescription
folder_idsarray of stringRequiredThe folders the document would be filed into.
missing_custom_field_template_idsarray of stringRequiredRegister sections whose values the request has not given.
missing_sectionsarray of RecordRunMissingSectionRequiredFolder and file sections that still need folder_ids or files.
missing_workflow_inputsarray of RecordRunWorkflowNeedsRequired
readybooleanRequiredA run with these values would start.
unfilled_columnsarray of RecordRunUnfilledColumnsRequiredColumns of the rows given that would stay blank; not a refusal.

RecordRunRecipientInput​

FieldTypeRequiredDescription
contact_idstring or nullOptionalFor type contact.
distribution_group_idstring or nullOptionalFor type distribution_group.
emailstring or nullOptionalFor type external: the address invited by email; needs Workflows - Assign External.
group_idstring or nullOptionalFor type group: a user group (a workflow role). For type external: the external group the invited person joins.
typestringRequireduser, group, contact, distribution_group or external (open enum). The input takes only the types its recipient_types lists.
user_idstring or nullOptionalFor type user: an active user. An input that asks for a member of a group takes only a member of that group.

RecordRunRequestInput​

FieldTypeRequiredDescription
custom_fieldsarray of RecordRunCustomFieldInputOptionalOne entry per register section of the record that asks for values.
filesarray of RecordRunFilesInputOptionalThe files of upload and attachment sections.
folder_idsarray of stringOptionalThe 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_inputsarray of RecordRunWorkflowInputInputOptionalThe recipients the started workflows ask for.

RecordRunRowInput​

FieldTypeRequiredDescription
valuesobjectOptionalThe values keyed by the field's name, byte for byte, in the forms create_custom_field_template_row takes.
values_by_custom_fieldobjectOptionalThe values keyed by custom_field_id. A field may be named once, by name or by ID.

RecordRunUnfilledColumns​

FieldTypeRequiredDescription
custom_field_template_idstringRequired
field_namesarray of stringRequired

RecordRunWorkflowInputInput​

FieldTypeRequiredDescription
input_keystringRequiredThe input's description, as preview_record_template lists it.
recipientsarray of RecordRunRecipientInputRequiredWho the input goes to. An empty list leaves an input that allows no selection unanswered.
workflow_template_idstringRequiredThe workflow template of a template_workflow_section of the record.

RecordRunWorkflowNeeds​

FieldTypeRequiredDescription
inputsarray of RecordRunInputNeedRequired
workflow_template_idstringRequired