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, onlyxmlis supported (and is the default).s3-config: The name of the S3 configuration to use. Defaults todefault. 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 to4.0.0. Possible values includeedge,2019.1.0,4.8.0, and4.0.0.prune-metadata: Whether to prune metadata from the XML data. Defaults totrueunlessdata-format-versionis set toedge.
Using properties
The s3-config, s3-path, and prune-metadata parameters are resolved in order as follows:
The action parameter, if provided (e.g.
send-s3(s3-path = "...")).The corresponding property, if the action parameter is not provided.
A default value, if neither the action parameter nor the property is found.
The corresponding properties are:
oxf.fr.send-s3.s3-configoxf.fr.send-s3.xml.s3-pathoxf.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