export_to_file

The export_to_file function is used to export the search results of the Trash section to an XLSX table.

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 completed successfully, returns an XLSX file.

Error codes

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.