system.kanoa.event.updateStateEventInfo(stateEventId, stateEventInfoName, value, userId)
Adds, updates or deletes an entry in the stateEventInfo table. Can be used to stored meta data about any stateEvent. i.e. whether a part was required for a downtime event.
Parameters
stateEventId Integer: Id of the state event
stateEventInfoName String: Name of the state event info to be added or modified
value String: Value to add or edit
userId Integer: Id of user executing the function
Returns
stateEventInfoId if insert else # of records modified Integer
Example
stateEventId = 123
stateEventInfoName = 'exampleInfo'
value = 'exampleValue'
userId = 123
stateEventInfoId = system.kanoa.event.updateStateEventInfo(stateEventId, stateEventInfoName, value, userId)