system.kanoa.event.updatePerformanceEvent(performanceEventInfo, userId)
Update the performance event. Update Link table accordingly
Parameters
performanceEventInfo Dictionary
| - endDate | DateTime | |
| - modeEventId | Integer | |
| - note | String | |
| - performanceEventId | Integer | |
| - performanceStateId | Integer | |
| - startDate | DateTime | |
| - value | Float |
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
>>>