---
title: "function write array to file · RUAL Documentation"
description: "Writes the incoming soap stream to a file. The selected key needs to be an array so the file can be streamed later on"
canonical: https://docs.rual.nl/block-types/soap%20connection/soapconnection_request_function_file
language: en
---

[Cluster](https://docs.rual.nl/cluster)

[Blocks](https://docs.rual.nl/block-types)

[Interfaces](https://docs.rual.nl/interfaces)

[Blueprints](https://docs.rual.nl/blueprints)

[Tutorials](https://docs.rual.nl/tutorials)

[Home automation](https://docs.rual.nl/home-automation)

[Examples](https://docs.rual.nl/examples)

[Reference](https://docs.rual.nl/reference)

[Architecture](https://docs.rual.nl/architecture)

[Troubleshooting](https://docs.rual.nl/troubleshooting)

Other

# function write array to file

This block is part of the [`soap connection`](https://docs.rual.nl/block-types/soap%20connection) group and was last modified in core [`v14.0.1`](https://docs.rual.nl/core-versions/140001).

Writes the incoming soap stream to a file. The selected key needs to be an array so the file can be streamed later on

- flow `flow`

- connection required `soapconnection`

- name required `value`

- request required `object`

- key required `value`

- options required `v14.0.2` `object` Allows setting basic request options like timeout (ms)

- flow `flow`

- success `condition`

- error `value`

- file `file`

A typical wiring for [function write array to file](https://docs.rual.nl/block-types/soap%2520connection/soapconnection_request_function_file): a [function trigger](https://docs.rual.nl/block-types/globals/trigger_custom_function) starts the flow; [soap function](https://docs.rual.nl/block-types/soap%2520connection/soapconnection_request_function) feeds the `connection` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `name` pin; [new object](https://docs.rual.nl/block-types/object/object_new_fields) feeds the `request` pin; [value](https://docs.rual.nl/block-types/value/value_default) feeds the `value` pin; the `flow` out pin feeds [debug](https://docs.rual.nl/block-types/state%2520ui/state_debug).

[![Studio canvas example for the function write array to file block: typical wiring for function write array to file.](https://docs.rual.nl/canvas-examples/soapconnection_request_function_file.png)](https://docs.rual.nl/canvas-examples/soapconnection_request_function_file.png?v=3)

## Version history

Introduced in [`v13.0.1`](https://docs.rual.nl/core-versions/130001).

Last modified in [`v14.0.1`](https://docs.rual.nl/core-versions/140001).

- [v14.0.2](https://docs.rual.nl/core-versions/140002): This block or one of its pins was updated in `v14.0.2`, click here to see the release notes.

- [Back to `soap connection`](https://docs.rual.nl/block-types/soap%20connection): Return to the main group to view all sub-groups

- [Back to `request`](https://docs.rual.nl/block-types/soap%20connection?group=request): Return to the group to view all blocks within this group

Was this page helpful? [Tell us what to improve](https://docs.rual.nl/support) · RUAL Docs is an integral component of the [RUAL ecosystem](https://rual.nl)
