Currently, it is not possible to display a Freshservice app from the customer's perspective (User/Employee/Requester). However, you can develop a Freshservice app on the Agent portal where tickets are handled.
- Begin by creating a serverless app.
- Utilize the
onTicketCreate
product event to implement your logic in server.js
:
exports = {
events: [{
event: "onTicketCreate",
callback: "onTicketCreateCallback"
}],
onTicketCreateCallback: function(payload) {
console.log("Displaying arguments from onTicketCreate event: " + JSON.stringify(payload));
// 1. Develop the logic based on the ticket subject provided in the payload.
// 2. Use the platform's request API to bypass CORS - https://developers.freshservice.com/docs/request-api/
// 3. Update fields using - https://api.freshservice.com/v2/#view_a_change
}
}
- Refer to this documentation for modifying agent-facing field values.
In essence, this process entails populating fields according to your requirements. The key distinction is that this occurs when a ticket is created, rather than when filling out the requester-facing form.