Add work item
Add one item (a Dictionary of fields) to a queue, optionally with a reference that is unique in the queue and tags.
Command in the Work queues toolkit · id ooa.workload/add_item · 6 inputs (2 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Queue | String | Yes | Queue name. | |
| Data | Dictionary | Yes | Item fields, e.g. {"invoice": "INV-7", "amount": 120}. | |
| Reference | String | No | A name for the item that is unique in the queue, e.g. the invoice number. | |
| If exists | String | No | error | When an item with this reference is already there: error stops, skip leaves it, update gives it the new data and tags. |
| Tags | List | No | Labels to find the item by, e.g. ["urgent", "north"]. | |
| Central | Boolean | No | false | Use the One CommandCenter queue with this name instead of the workspace's own file (runs started from One CommandCenter only). |
Outputs
| Output | Type | What it is |
|---|---|---|
| item_id | String | New item id (or the id of the item with the same reference). |
| outcome | String | added, skipped (the reference was there and if_exists is skip) or updated. |