The `robocorp-workitems` library is part of the Robocorp ecosystem, providing utilities to manage data flow between tasks in a Robotic Process Automation (RPA) workflow. It allows robots to read input work items and write output work items, facilitating the transfer of structured data, files, and assets. The current version is 1.5.0, and it's actively maintained as part of the broader Robocorp platform.
pip install robocorp-workitemsVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to read data from an input work item and create an output work item with a new payload. It's designed to run within the Robocorp environment or locally with simulated work item data.
Replace `from RPA.Robocorp.WorkItems import WorkItems` with `from robocorp.workitems import current, inputs, outputs`. Re-implement logic using the new, idiomatic API.
Always run your robot using `rc task run` for local development or within Robocorp Control Room for production. For local testing, simulate input work items by creating a `devdata/work-items-in` directory with `work-item.json` files.
Ensure all data placed into `set_payload` or `add_payload` consists of standard Python types (dict, list, string, number, boolean, None) that can be directly converted to JSON.
No dependency data recorded yet.