Skip to main content

system.kanoa.attribute.updateAttributeEvent

This function is part of the kanoaOPS module

Description

Updates an attribute event record.

Syntax

updateAttributeEvent(attributeEventInfo, userId)
  • Parameters
      dictionary attributeEventInfo - {'attributeEventId': 23, 'attributeAssetLinkId': 18, 'value': 'sausages', 'tStamp': somedate}
      int userId - User ID
  • Returns
      int - Number of records modified
  • Code Examples

    # Example usage
    attributeEventInfo = {
    'attributeEventId': 23,
    'attributeAssetLinkId': 18,
    'value': 'sausages',
    'tStamp': somedate
    }
    userId = 123
    modifiedRecords = system.kanoa.attribute.updateAttributeEvent(attributeEventInfo, userId)
    print(modifiedRecords) # Print the number of modified records