Exports Put
Configuration reference for the Exports Put Pipes valve and its supported options.
Introduction
Section titled “Introduction”ExportsPut exports values to the exports scope so they can be reused later in the same pipe. You can configure either a single export with name and value, or multiple exports in one valve with values.
${exports.my_property}
Configuration
Section titled “Configuration”| Name | Description | Default | Mandatory | Expanded |
|---|---|---|---|---|
name | Name of a single export. Use together with value for backwards-compatible single-export configuration. | N/A | ||
value | Value for a single export. Can be a simple value such as a string or a complex value such as a JsonObject. | N/A | ||
values | Object containing one or more exports to create in the same valve. Each key becomes the export name and each value becomes the exported value. | {} | ||
replace | If an export already exists, should it be replaced? | true |
{ "name": "ExportsPut", "enabled": true, "config": { "values": { "token_type": "${state.body.token_type}", "access_token": "${state.body.access_token}", "expires_in": "${state.body.expires_in}" } }}If you only need to export one value, the existing single-export format still works:
{ "name": "ExportsPut", "enabled": true, "config": { "name": "token_type", "value": "${state.body.token_type}" }}