Skip to main content

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

Update the performance event. Update Link table accordingly


Parameters

performanceEventInfo Dictionary

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

userId Integer: Id of user executing the function


Returns

# of records modified Integer
message String None if successful


Example

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