---
title: "create multiple documents · RUAL Documentation"
description: "Creates multiple documents in the given storage, each item in the array becomes a document."
canonical: https://docs.rual.nl/block-types/storage/function_create_documents
language: en
---

# create multiple documents

This block is part of the [`storage`](https://docs.rual.nl/block-types/storage) group and was last modified in core [`v13.0.6`](https://docs.rual.nl/core-versions/130006).

### Storage Selection Required

This block relies on a storage to perform its storage releated actions. You must manually select the storage you want to use in your flow using the storage selector modal. To access the modal, click the white button on the block.

Creates multiple documents in the given storage, each item in the array becomes a document.

- flow `flow`

- array required `array ` Each item in this array becomes a document, make sure the item is an object.

- expiry `date` When a document is given an expiry date, the document will be unrecoverably deleted on the given date

- update priority `v13.0.6` `number` A document update can be important for search relevance or not, by poviding the system a priority you can help it understand what updates are high priority (1) and what updates can be delayed without huge impact for search relevance (3). 1 is highest priority, 2 is medium priority, 3 is low priority and 0 is wait-for-insert.

Default `1`

- storage required `storage` The storage these documents should be created in.

- flow `flow`

- success `condition`

- array `array`

- error `value`

A typical wiring for [create multiple documents](https://docs.rual.nl/block-types/storage/function_create_documents): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%20ui/state_debug).

![Studio canvas example for the create multiple documents block: typical wiring for create multiple documents.](https://docs.rual.nl/canvas-examples/function_create_documents.png)

### Version history

Introduced in [`v9.2.5`](https://docs.rual.nl/core-versions/90205).

Last modified in [`v13.0.6`](https://docs.rual.nl/core-versions/130006).
