Skip to main content

system.kanoa.lot.getLotEvents

This function is part of the kanoaOPS module

Description

Retrieves lot events filtered by the provided parameters. Input parameters are inclusive, e.g. an end date is 1/1 at 12:00PM will be included in the results.

Syntax

getLotEvents(paramsDict)
  • Parameters
      paramsDict (dict)
      - lotEventId (int)
      - lotId (int)
      - lotName (string)
      - itemId (int)
      - itemPath (string)
      - enabled (int)
      - lotOperationEventId (int)
      - lotOperationId (int)
      - lotOperationName (string)
      - assetId (int)
      - assetPath (string)
      - itemSourceId (int)
      - itemSourceName (string)
      - lotStateId (int)
      - lotStateName (string)
      - lotStateReasonId (int)
      - lotStateReasonName (string)
      - startDate (datetime)
      - endDate (datetime)
      - workOrderId (int)
      - workOrderName (string)
  • Returns
      pyDataset - Lot events dataset.
  • Code Examples

    # Example usage
    >paramsDict = {'lotId': 1, 'assetId': 1}
    >lotEvents = system.kanoa.lot.getLotEvents(paramsDict)
    >print(lotEvents) # Print the retrieved lot events