system.kanoa.lot.addLotOperationEvent
Description
Adds a new lot event.Syntax
addLotOperationEvent(lotOperationEventInfo, userId)Parameters:
Returns:
Dictionary
Parameter | Type | Required | Notes |
---|---|---|---|
lotOperationId | int | ||
assetId | int | ||
tStamp | datetime | ||
enabled | bool |
Code Examples
# Example usage
>lotOperationEventInfo = {'lotOperationId': 1, 'assetId': 18, tStamp': system.date.now(), enabled': True}
>userId = 5
>lotOperationEventId, msg = system.kanoa.lot.addLotOperationEvent(lotOperationEventInfo, userId)
>print(lotOperationEventId)