send-s3 action

Availability

[SINCE Orbeon Forms 2026.1]

Introduction

The send-s3 action stores form data as XML in an S3 bucket. This is useful when you want to store a copy of the form data in S3, alongside the database, for example for archival purposes.

This action uses the same S3 configuration as the email action's S3 storage feature.

Parameters

  • content: The type of content to send. Currently, only xml is supported (and is the default).

  • s3-config: The name of the S3 configuration to use. Defaults to default. See S3 bucket configuration.

  • s3-path: An optional XPath expression that determines the S3 key (path) under which the data is stored. The expression is evaluated against the XML data of the form.

  • data-format-version: The data format version. Defaults to 4.0.0. Possible values include edge, 2019.1.0, 4.8.0, and 4.0.0.

  • prune-metadata: Whether to prune metadata from the XML data. Defaults to true unless data-format-version is set to edge.

Using properties

The s3-config, s3-path, and prune-metadata parameters are resolved in order as follows:

  1. The action parameter, if provided (e.g. send-s3(s3-path = "...")).

  2. The corresponding property, if the action parameter is not provided.

  3. A default value, if neither the action parameter nor the property is found.

The corresponding properties are:

  • oxf.fr.send-s3.s3-config

  • oxf.fr.send-s3.xml.s3-path

  • oxf.fr.send-s3.prune-metadata

A default value for oxf.fr.send-s3.xml.s3-path is provided:

This generates S3 keys such as:

Example

Here is an example of a process that saves data to the database and then stores a copy of the XML data in S3:

If the default S3 path works for you, the call can be simplified to:

See also

Last updated