export_to_file

To export the search results of the Trash section to an XLSX table, use the core/export_to_file method.

Copied!
svc=core/export_to_file&params={
  "sheets": [
    {
      "title": "<text>",
      "rows": [
        ["<text>"]
      ]
    }
  ],
  "format": <uint>
}

Parameters

The required parameters are marked with an asterisk (*).

Parameter Description
sheets* Array of tables.
title* Table title.
rows* Table columns and rows.
format* Table format. Specify 8 for XLSX.

Response

If the request is completed successfully, an XLSX file is returned.

If the request fails, an error code is returned.

Error codes

Error code Description
4 Invalid parameters provided or inappropriate format specified. The only suitable format is XLSX, that is, the request should contain “format”: 8.
5 Request execution error (failed to create temporary directories and/or execute file creation method).

If you find a mistake in the text, please select it and press Ctrl+Enter.