OnTicketFieldCreate
Custom fields can be added to the ticket form that is displayed in the agent or customer support portal. When a custom ticket field is created and saved, the onTicketFieldCreate event is triggered.
Subscribe to the onTicketFieldCreate event and register the callback by using the following sample manifest.json content.
"events": {
"onTicketFieldCreate": {
"handler": "onTicketFieldCreateCallback"
}
}
Define the corresponding callback by using the following sample server.js content:
exports = {
onTicketFieldCreateCallback: function(payload) {
console.log("Logging arguments from onTicketFieldCreate event: " + JSON.stringify(payload));
}
}
Attributes of the data object
- actorobject
Information pertaining to the entity who triggered the onTicketFieldCreate event in the Freshdesk system.
- associationsobject
All associated objects of the forum object, that specify additional information pertaining to the forum.
- ticket_fieldobject
Information pertaining to the custom ticket field created and saved to the Freshdesk system.
OnTicketFieldDelete
The onTicketFieldDelete event is triggered when a ticket field is deleted permanently from a ticket form.
Subscribe to the onTicketFieldDelete event and register the callback by using the following sample manifest.json content.
"events": {
"onTicketFieldDelete": {
"handler": "onTicketFieldDeleteCallback"
}
}
Define the corresponding callback by using the following sample server.js content:
exports = {
onTicketFieldDeleteCallback: function(payload) {
console.log("Logging arguments from onTicketFieldDelete event: " + JSON.stringify(payload));
}
}
Attributes of the data object
- actorobject
Information pertaining to the entity who triggered the onTicketFieldDelete event in the Freshdesk system.
- associationsobject
All associated objects of the forum object, that specify additional information pertaining to the forum.
- ticket_fieldobject
Information pertaining to the custom ticket field that was deleted from the Freshdesk system.