system.mes.meter.importMeterConfigurationsFromCsv
Description
Imports Meter Configuration records from a CSV file.
Permissions
This method requires the METERING.WRITE.SAVE permission.
Syntax
system.mes.meter.importMeterConfigurationsFromCsv(bytes)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
bytes | byte[] | False | The CSV file contents as bytes. |
Returns
Returns a JSON representation of the import response.
Code Examples
Script Console
# Open a file dialog and import Meter Configurations from the selected CSV file
path = system.file.openFile("csv")
if path is not None:
csvBytes = system.file.readFileAsBytes(path)
response = system.mes.meter.importMeterConfigurationsFromCsv(csvBytes)
print(response)