メインコンテンツまでスキップ

See what running a record template still needs.

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

このページの操作の説明は、API の OpenAPI 文書のとおり英語で記載しています。

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.

スコープrecords:read
非同期いいえ
MCP ツールpreview_record_template
Portal の権限execute_records

パラメーター​

名前場所型必須説明
record_template_idpathstring必須
Docwize-Versionheaderstring (date)任意

リクエスト本文​

Content-Type型
application/jsonRecordRunRequestInput

応答​

ステータス説明本文
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

エラー​

この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。

スキーマ​

RecordRunCustomFieldInput​

フィールド型必須説明
custom_field_template_idstring必須The register of a custom_field section of the record.
row_idsstring の配列任意Existing rows of a GridLink register whose section links rows instead of creating them; you must be able to see them.
rowsRecordRunRowInput の配列任意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.

RecordRunFilesInput​

フィールド型必須説明
document_idsstring の配列必須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_indexinteger必須The position (from 0) of an upload_section or attachment_section in the template's sections array. ≥ -2147483648; ≤ 2147483647

RecordRunGroupMember​

フィールド型必須説明
emailstring または null必須
user_idstring必須

RecordRunInputGroup​

フィールド型必須説明
group_idstring必須
member_countinteger必須≥ -2147483648; ≤ 2147483647
membersRecordRunGroupMember の配列必須The first members, as the picker lists them.
members_truncatedboolean必須There are more members than members lists.
namestring または null必須

RecordRunInputNeed​

フィールド型必須説明
allow_no_selectionboolean必須The input may be left unanswered.
collectableboolean必須False for an input a run cannot collect: the run is refused.
groupRecordRunInputGroup または null必須For an input that asks for a member of a group: the group and its members.
help_notesstring または null必須
input_keystring必須
input_typestring または null必須
recipient_typesstring の配列必須The recipient types the input takes, as a recipient names them.
selection_typestring または null必須

RecordRunMissingSection​

フィールド型必須説明
requiresstring必須
sectionstring必須The section's name, or its position when it has none.

RecordRunPreview​

フィールド型必須説明
folder_idsstring の配列必須The folders the document would be filed into.
missing_custom_field_template_idsstring の配列必須Register sections whose values the request has not given.
missing_sectionsRecordRunMissingSection の配列必須Folder and file sections that still need folder_ids or files.
missing_workflow_inputsRecordRunWorkflowNeeds の配列必須
readyboolean必須A run with these values would start.
unfilled_columnsRecordRunUnfilledColumns の配列必須Columns of the rows given that would stay blank; not a refusal.

RecordRunRecipientInput​

フィールド型必須説明
contact_idstring または null任意For type contact.
distribution_group_idstring または null任意For type distribution_group.
emailstring または null任意For type external: the address invited by email; needs Workflows - Assign External.
group_idstring または null任意For type group: a user group (a workflow role). For type external: the external group the invited person joins.
typestring必須user, group, contact, distribution_group or external (open enum). The input takes only the types its recipient_types lists.
user_idstring または null任意For type user: an active user. An input that asks for a member of a group takes only a member of that group.

RecordRunRequestInput​

フィールド型必須説明
custom_fieldsRecordRunCustomFieldInput の配列任意One entry per register section of the record that asks for values.
filesRecordRunFilesInput の配列任意The files of upload and attachment sections.
folder_idsstring の配列任意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_inputsRecordRunWorkflowInputInput の配列任意The recipients the started workflows ask for.

RecordRunRowInput​

フィールド型必須説明
valuesobject任意The values keyed by the field's name, byte for byte, in the forms create_custom_field_template_row takes.
values_by_custom_fieldobject任意The values keyed by custom_field_id. A field may be named once, by name or by ID.

RecordRunUnfilledColumns​

フィールド型必須説明
custom_field_template_idstring必須
field_namesstring の配列必須

RecordRunWorkflowInputInput​

フィールド型必須説明
input_keystring必須The input's description, as preview_record_template lists it.
recipientsRecordRunRecipientInput の配列必須Who the input goes to. An empty list leaves an input that allows no selection unanswered.
workflow_template_idstring必須The workflow template of a template_workflow_section of the record.

RecordRunWorkflowNeeds​

フィールド型必須説明
inputsRecordRunInputNeed の配列必須
workflow_template_idstring必須