Skip to main content

Download document

Save a document's results (CSV or JSON), or the file that was sent, to a folder (G6). A file of the same name there is replaced.

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

Inputs​

InputTypeRequiredDefaultWhat it is
Document IDStringYesThe document id that Send document to process gave (or a document_id input given by a Start-a-bot delivery).
KindStringNocsvcsv: one row per field (field, value, confidence, page, corrected). json: everything that was read. original: the document as it was sent.
FolderStringNoThe folder to save in. Empty: the run's temporary folder (the path output says where).
Delete afterBooleanNotrueAsk Document Automation to remove its copy once the file is saved. When the service keeps documents, the step says so and goes on.

Outputs​

OutputTypeWhat it is
pathFileThe saved file.
deletedBooleanTrue when Document Automation's copy was removed.