Skip to main content

system.mes.location.exportAsCsvBytes

Description

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

Syntax

system.mes.location.exportAsCsvBytes()

Parameters

No parameters.

Returns

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

Code Examples

Perspective

csvBytes = system.mes.location.exportAsCsvBytes()
system.perspective.download("locations.csv", csvBytes)