Skip to main content

system.kanoa.lot.addLotOperationEvent

Description

Adds a new lot event.

Syntax

addLotOperationEvent(lotOperationEventInfo, userId)

Parameters:
  • lotOperationEventInfo (dict)
  • userId (int)

  • Returns:
  • lotOperationEventId (int)
  • msg (string): None if successful
  • Dictionary

    ParameterTypeRequiredNotes
    lotOperationIdint
    assetIdint
    tStampdatetime
    enabledbool

    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)