Skip to main content

system.kanoa.event.addPerformanceEvent(performanceEventInfo, userId)

Adds a new performance event


Parameters

performanceEventInfo Dictionary

- endDateDateTime
- modeEventIdInteger
- noteString
- performanceStateIdInteger
- startDateDateTime
- valueFloat

userId Integer: Id of user executing the function


Returns

performanceEventId Integer
message String None if success


Example

userId = 18
performanceEventInfo = {
'modeEventId': 5,
'startDate': system.date.parse("2025-11-01 00:00:00"),
'performanceStateId': 7,
'value': 0.1,
'note': 'Approved'
}
addPerformanceEvent(performanceEventInfo, userId)
>
45, None
>>>