system.mes.inventory.operation.importFromCsv
Description
Imports Inventory Operations from a CSV file provided as raw bytes. The service layer will parse the CSV content and create or update inventory operation entities.
Recommended to export at least one pre-existing inventory operation to CSV using the exportAsCsv functionality to ensure the correct format of the CSV file.
Permissions
This method requires the INVENTORY_OPERATION.WRITE.SAVE permission.
Syntax
system.mes.inventory.operation.importFromCsv(importBytes)
Parameters
| Parameter | Type | Nullable | Description |
|---|---|---|---|
importBytes | PyArray | False | The CSV content as raw bytes. |
Returns
An ApiResponse object where data is the number of inventory operations successfully imported or updated.