Workflow steps

storage.write

type: "storage.write"

Changes a connected database or bucket. Eight actions, each with what it requires — and an empty filter is refused twice.

storage required8 actionsempty filter needs all
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

storagestringrequired

The storage.

actionstringrequired

insert · update · delete · sql · put · remove · createCollection · dropCollection.

collectionstring

Required by the five document actions.

sqlstring

Required by sql.

keystring

Required by put and remove.

allboolean

Confirms a change with an empty filter.

{ id: "file", type: "storage.write", config: {
    storage: "…", action: "insert", collection: "tickets",
    documents: [{ text: "{{input.text}}", at: "{{input.receivedAt}}" }] } }
{"id": "file", "type": "storage.write", "config": {
    "storage": "…", "action": "insert", "collection": "tickets",
    "documents": [{"text": "{{input.text}}", "at": "{{input.receivedAt}}"}]}}

An empty filter is refused — twice

Once on save, once during the run

Saving catches a filter that is empty as written. But {{steps.find.output.id}} passes validation and can resolve to an empty string at run time — so it is checked again, with the field named. A run with nobody watching must not be able to empty a collection because an upstream template produced nothing.

Output

{{steps.file.output.result}}
{{steps.file.output.action}}
{{steps.file.output.storage}}
"{{steps.file.output.result}}"
"{{steps.file.output.action}}"
"{{steps.file.output.storage}}"

There is no undo

And no approval required either — this stays inside the account. A retry from before this step writes again, which is the thing to think about before retrying a chain that writes.