See what running a record template still needs.
このページの操作の説明は、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_id | path | string | 必須 | |
Docwize-Version | header | string (date) | 任意 |
リクエスト本文
| Content-Type | 型 |
|---|---|
application/json | RecordRunRequestInput |
応答
| ステータス | 説明 | 本文 |
|---|---|---|
200 | Success. | application/json RecordRunPreview |
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 |
409 | conflict | 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 |
エラー
この操作が返す可能性のある problem のコードです。各コードからそのページに移動できます。
スキーマ
RecordRunCustomFieldInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_template_id | string | 必須 | The register of a custom_field section of the record. |
row_ids | string の配列 | 任意 | Existing rows of a GridLink register whose section links rows instead of creating them; you must be able to see them. |
rows | RecordRunRowInput の配列 | 任意 | 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_ids | string の配列 | 必須 | 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 | 必須 | The position (from 0) of an upload_section or attachment_section in the template's sections array. ≥ -2147483648; ≤ 2147483647 |
RecordRunGroupMember
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
email | string または null | 必須 | |
user_id | string | 必須 |
RecordRunInputGroup
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
group_id | string | 必須 | |
member_count | integer | 必須 | ≥ -2147483648; ≤ 2147483647 |
members | RecordRunGroupMember の配列 | 必須 | The first members, as the picker lists them. |
members_truncated | boolean | 必須 | There are more members than members lists. |
name | string または null | 必須 |
RecordRunInputNeed
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
allow_no_selection | boolean | 必須 | The input may be left unanswered. |
collectable | boolean | 必須 | False for an input a run cannot collect: the run is refused. |
group | RecordRunInputGroup または null | 必須 | For an input that asks for a member of a group: the group and its members. |
help_notes | string または null | 必須 | |
input_key | string | 必須 | |
input_type | string または null | 必須 | |
recipient_types | string の配列 | 必須 | The recipient types the input takes, as a recipient names them. |
selection_type | string または null | 必須 |
RecordRunMissingSection
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
requires | string | 必須 | |
section | string | 必須 | The section's name, or its position when it has none. |
RecordRunPreview
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
folder_ids | string の配列 | 必須 | The folders the document would be filed into. |
missing_custom_field_template_ids | string の配列 | 必須 | Register sections whose values the request has not given. |
missing_sections | RecordRunMissingSection の配列 | 必須 | Folder and file sections that still need folder_ids or files. |
missing_workflow_inputs | RecordRunWorkflowNeeds の配列 | 必須 | |
ready | boolean | 必須 | A run with these values would start. |
unfilled_columns | RecordRunUnfilledColumns の配列 | 必須 | Columns of the rows given that would stay blank; not a refusal. |
RecordRunRecipientInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
contact_id | string または null | 任意 | For type contact. |
distribution_group_id | string または null | 任意 | For type distribution_group. |
email | string または null | 任意 | For type external: the address invited by email; needs Workflows - Assign External. |
group_id | string または null | 任意 | For type group: a user group (a workflow role). For type external: the external group the invited person joins. |
type | string | 必須 | user, group, contact, distribution_group or external (open enum). The input takes only the types its recipient_types lists. |
user_id | string または 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_fields | RecordRunCustomFieldInput の配列 | 任意 | One entry per register section of the record that asks for values. |
files | RecordRunFilesInput の配列 | 任意 | The files of upload and attachment sections. |
folder_ids | string の配列 | 任意 | 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 | RecordRunWorkflowInputInput の配列 | 任意 | The recipients the started workflows ask for. |
RecordRunRowInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
values | object | 任意 | 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 | 任意 | The values keyed by custom_field_id. A field may be named once, by name or by ID. |
RecordRunUnfilledColumns
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
custom_field_template_id | string | 必須 | |
field_names | string の配列 | 必須 |
RecordRunWorkflowInputInput
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
input_key | string | 必須 | The input's description, as preview_record_template lists it. |
recipients | RecordRunRecipientInput の配列 | 必須 | Who the input goes to. An empty list leaves an input that allows no selection unanswered. |
workflow_template_id | string | 必須 | The workflow template of a template_workflow_section of the record. |
RecordRunWorkflowNeeds
| フィールド | 型 | 必須 | 説明 |
|---|---|---|---|
inputs | RecordRunInputNeed の配列 | 必須 | |
workflow_template_id | string | 必須 |