Skip to main content

system.mes.operation.exportAsCsvBytes

Description

Exports all Operations as raw bytes in CSV format (UTF-8 encoded). Streams operation data from the database and formats it as CSV, including a header row.

Syntax

system.mes.operation.exportAsCsvBytes()

Parameters

No parameters.

Returns

A Byte array (Byte[]) containing the raw byte data of the CSV export.

Code Examples

Perspective

csvBytes = system.mes.operation.exportAsCsvBytes()
system.perspective.download("operations.csv", csvBytes)