Skip to main content

system.kanoa.attribute.addAttributeEvent

This function is part of the kanoaOPS module

Description

Adds an attribute event record.

Syntax

addAttributeEvent(attributeEventInfo, userId)
  • Parameters
      dictionary attributeEventInfo - {'attributeAssetLinkId': 18, 'value': 'sausages', 'tStamp': somedate}
      int userId - User ID
  • Returns
      int attributeEventId - Newly created attribute event ID
  • Code Examples

    # Example usage
    attributeEventInfo = {
    'attributeAssetLinkId': 18,
    'value': 'sausages',
    'tStamp': somedate
    }
    userId = 123
    attributeEventId = system.kanoa.attribute.addAttributeEvent(attributeEventInfo, userId)
    print(attributeEventId) # Print the attribute event ID