---
updatedAt: 2026-04-08T10:25:39.000Z
---

# Export relational table data - ExportTable

Programmatically export relational table and relational table query data from your Acoustic Campaign org and uploading a CSV, TSV, or PSV file to the SFTP account or to the Stored Files directory associated with the session.

## Elements (Required)

[block:callout]
{
  "type": "info",
  "title": "TABLE_NAME or TABLE_ID?",
  "body": "You need to only include one in your call: TABLE_NAME or TABLE_ID."
}
[/block]

**TABLE\_NAME** - Specifies the folder path and name of the relational table or relational table query that you are exporting.
*Note*: If you specify TABLE\_VISIBILITY, Acoustic Campaign ignores Private/Shared in TABLE\_NAME.

**TABLE\_ID** - Specifies the ID of the relational table or relational table query that you are exporting.

**TABLE\_VISIBILITY** - Only required if not specified in TABLE\_NAME. Defines the visibility of the table you are referencing: 0 (private) or 1 (shared).

**EXPORT\_FORMAT** - Specifies the file format for the exported data. Valid values are:

* CSV – create a comma-separated values file
* TAB – create a tab-separated values file
* PIPE – create a pipe-separated values file

## Elements (Optional)

**EMAIL** - If specified, Acoustic Campaign sends a completion email to the provided email address.

**FILE\_ENCODING** - Defines the encoding of the exported file. Supported values are:

* utf-8
* iso-8859-1
  If not specified, Acoustic Campaign uses the organization default encoding.

**ADD\_TO\_STORED\_FILES** - Writes output to the Stored Files folder in Acoustic Campaign. If you omit this element, Acoustic Campaign moves exported files to the download directory of your FTP account.

**DATE\_START** - Specifies the beginning boundary of information to export (relative to the last modified date of the row). If time is included, it must be in 24-hour format.

**DATE\_END** - Specifies the ending boundary of information to export (relative to the last modified date of the row). If time is included, it must be in 24-hour format.

[block:code]
{
  "codes": [
    {
      "code": "<Envelope>\n  <Body>\n    <ExportTable>\n      <TABLE_NAME>Web Analytics Purchases</TABLE_NAME>\n      <TABLE_VISIBILITY>1</TABLE_VISIBILITY>\n      <EXPORT_FORMAT>CSV</EXPORT_FORMAT>\n      <ADD_TO_STORED_FILES/>\n      <DATE_START>07/25/2011 12:12:11</DATE_START>\n      <DATE_END>09/30/2011 14:14:11</DATE_END>\n    </ExportTable>\n  </Body>\n</Envelope>",
      "language": "xml",
      "name": "Example call - XML"
    },
    {
      "code": "<Envelope>\n  <Body>\n    <ExportTable>\n      <TABLE_NAME>Shared/Web Analytics Purchases - last 30 days</TABLE_NAME>\n      <EXPORT_FORMAT>PIPE</EXPORT_FORMAT>\n      <ADD_TO_STORED_FILES/>\n    </ExportTable>\n  </Body>\n</Envelope>",
      "language": "xml",
      "name": "Example call for a relational table query by name - XML"
    },
    {
      "code": "<Envelope>\n  <Body>\n    <ExportTable>\n      <TABLE_ID>59294</TABLE_ID>\n      <EXPORT_FORMAT>CSV</EXPORT_FORMAT>\n      <ADD_TO_STORED_FILES/>\n      <DATE_START>01/01/2017 00:00:01</DATE_START>\n    </ExportTable>\n  </Body>\n</Envelope>",
      "language": "xml",
      "name": "Example call for a relational table by ID - XML"
    },
    {
      "code": "<Envelope>\n  <Body>\n    <RESULT>\n      <SUCCESS>TRUE</SUCCESS>\n      <JOB_ID>499600</JOB_ID>\n      <FILE_PATH>\n        /download/Purchases – Oct 11 2011 03-58- 17PM.CSV\n      </FILE_PATH>\n    </RESULT>\n  </Body>\n</Envelope>",
      "language": "xml",
      "name": "Example response - XML"
    }
  ]
}
[/block]

## Elements (Results)

**SUCCESS** - *True* if successful; *False* if not.

**JOB\_ID** - Identifies the Acoustic Campaign background job created and scheduled for this export.

**FILE\_PATH** - Returns the file name and path of the exported file.