Skip to main content

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​

InputTypeRequiredDefaultWhat it is
QueueStringYesQueue name.
DataDictionaryYesItem fields, e.g. {"invoice": "INV-7", "amount": 120}.
ReferenceStringNoA name for the item that is unique in the queue, e.g. the invoice number.
If existsStringNoerrorWhen an item with this reference is already there: error stops, skip leaves it, update gives it the new data and tags.
TagsListNoLabels to find the item by, e.g. ["urgent", "north"].
CentralBooleanNofalseUse the One CommandCenter queue with this name instead of the workspace's own file (runs started from One CommandCenter only).

Outputs​

OutputTypeWhat it is
item_idStringNew item id (or the id of the item with the same reference).
outcomeStringadded, skipped (the reference was there and if_exists is skip) or updated.