List finished documents
List a process's documents that are read and need nothing more (read and checked, approved or rejected) and are not yet marked collected.
Command in the Document Automation toolkit · id ooa.documents/list_finished · 5 inputs (1 required), 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Process | String | Yes | The process's name (or id) as shown in Document Automation. | |
| Reviewed only | Boolean | No | false | Only documents a person approved or rejected (not those read and checked without a review). |
| Collector | String | No | A name for whoever collects: agents with the same name share the collected marks, so none takes a document twice. Empty: default. | |
| Include collected | Boolean | No | false | Also list documents already marked collected. |
| Limit | Number | No | 100 | At most this many documents. |
Outputs
| Output | Type | What it is |
|---|---|---|
| documents | Table | Columns: document_id, file_name, status, document_type, created_at, reviewed_by, collected. |
| document_ids | List | The documents' ids, for a loop or for Mark collected. |
| count | Number | How many documents are listed. |