How to customize the reply button to trigger other events instead of email

Look at this screenshot, wherein agent portal we will give response for each ticket by using the reply button. so can I know how I can customize to trigger other events also instead of triggering email?

1 Like

By customization, if you mean — “I want to invoke a function to do X, alongside email reply when reply button is clicked”

You can do this by,

await client.events.on('ticket.replyClick', goDoX)

function goDoX(event){
  let eventName = event.type; // contains name of event — ticket reply
  // additional logic to do X
} 

Sample app -events-method-samples/freshdesk at main · freshworks-developers/events-method-samples · GitHub

If I misunderstood the question,

Please help understand the problem in a different way where we can picture it in ways we can help?

See what can cause confusions in Technical Discussions

See what information you can provide to effective solutioning

2 Likes

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.