system.mes.dashboard.exportParameterTypesAsCsv
Description
Exports all or selected widget parameter types as raw bytes in CSV format (UTF-8 encoded).
When idsOrNames is omitted, all parameter types are exported.
Permissions
This method requires the DASHBOARD.READ.GET permission.
Syntax
system.mes.dashboard.exportParameterTypesAsCsv()
system.mes.dashboard.exportParameterTypesAsCsv(idsOrNames=["Temperature"])
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
idsOrNames | String[] | Yes | The ids or names of the parameter types to export. Omit to export all. |
Returns
A byte array (byte[]) containing the raw CSV bytes of the exported parameter types (UTF-8 encoded).
Code Examples
Perspective
csvBytes = system.mes.dashboard.exportParameterTypesAsCsv()
system.perspective.download("parameter-types.csv", csvBytes)
Script Console
csvBytes = system.mes.dashboard.exportParameterTypesAsCsv()
path = system.file.saveFile("parameter-types.csv")
if path is not None:
system.file.writeFile(path, csvBytes)