system.kanoa.attribute.addAttributeEvent
Description
Adds an attribute event record.Syntax
addAttributeEvent(attributeEventInfo, userId)- dictionary attributeEventInfo - {'attributeAssetLinkId': 18, 'value': 'sausages', 'tStamp': somedate}
- int userId - User ID
- 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