Skip to main content

system.mes.material.exportMaterialsAsCsvBytes

Description

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

Syntax

system.mes.material.exportMaterialsAsCsvBytes()

Parameters

No parameters.

Returns

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

Code Examples

Perspective

csvBytes = system.mes.material.exportMaterialsAsCsvBytes()
system.perspective.download("materials.csv", csvBytes)