Hi FreshWorks developer comunity,
I’m facing a problem I’m unable to understand. When I test my app with the onTicketUpdate.json, it works like a charm, but when I upload it to FreshDesk, it doesn’t work at all. I even have a console log at the first line of the onTicketUpdateHandler function, and it doesn’t appear on the logs, nothing appears on the logs. I don’t get it.
onTicketUpdateHandler: async function (args) {
console.log("hi");
let { iparams, data } = args;
let { ticket } = data;
console.log(ticket.id);
if (ticket.custom_fields.cf_group_creation_trigger) {
console.log(`Getting group creator for ticket ${ticket.id}`);
try {
groups = await this.assignGroupCreatedBy(iparams, ticket);
} catch (err) {
console.log(err);
return;
}
}
}
Thanks for the help