According to the “What’s new?” page of the Developer docs (Freshworks Developer Docs | What's new?), in November 2024 there were two new product events added to Freshservice:
onTimeSheetCreate and onTimeSheetUpdate
(both are misspelled, according to the fdk logs and the doc pages they should be onTimesheetCreate and onTimesheetUpdate)
I created a new serverless app to test these events:
manifest.json
{
"platform-version": "3.0",
"modules": {
"service_ticket": {
"events": {
"onTicketCreate": {
"handler": "onTicketCreateCallback"
},
"onTimesheetCreate": {
"handler": "onTimesheetCreateCallback"
},
"onTimesheetUpdate": {
"handler": "onTimesheetUpdateCallback"
}
}
}
},
"engines": {
"node": "18.20.5",
"fdk": "9.2.1"
}
}
server.js
exports = {
onTicketCreateCallback: function (ticket) {
console.info("Ticket: " + JSON.stringify(ticket))
},
onTimesheetCreateCallback: function (timesheet) {
console.info("Created: " + JSON.stringify(timesheet))
},
onTimesheetUpdateCallback: function (timesheet) {
console.info("Updated: " + JSON.stringify(timesheet))
}
}
After creating a new ticket, adding multiple time entries and then updating several again, only the ticket creation in logged in the App logs: