Skip to main content

Send document to process

Send a document to a live Document Automation process. Optionally wait until it is read, to use its fields and status in the agent.

Command in the Document Automation toolkit · id ooa.documents/send · 4 inputs (2 required), 5 outputs

Inputs​

InputTypeRequiredDefaultWhat it is
ProcessStringYesThe process's name (or id) as shown in Document Automation. It must be live.
PathFileYesThe document: PDF, PNG, JPG or TIFF.
WaitBooleanNofalseWait until the document is read (up to 15 minutes) and return its status and fields.
Process versionNumberNoOnly send when the process's setup is still this version (G6), so a changed setup never reads the document unnoticed: a different version stops the step with DOCS.VERSION_CHANGED. Empty: whatever version is live.

Outputs​

OutputTypeWhat it is
document_idStringThe document's id in Document Automation (when the file was one document of a process that recognises types: that document's id).
statusStringprocessing, success (read and checked), validation (waits for a reviewer), invalid or failed.
needs_reviewBooleanTrue when a person must review it (only known when waiting).
fieldsDictionaryThe fields read, by name (only when waiting).
partsListWhen the file held several documents (a process that recognises and splits): each one's document_id, status, doc_type and file_name. Empty otherwise.