Hi There,
Whenever the user clicks email’s reply button, I will add some content in email body.
By using this method I have achieved the current scenario and it working properly but text is getting added multiple times in email body per click.
FYR:
I have attached the code and screenshot.
$(document).ready(function () {
app.initialized().then(function (_client) {
window.client = _client;
client.events.on("ticket.replyClick", eventCallback);
})
});
var eventCallback = async function (event) {
const response = await client.interface.trigger("setValue", { id: "editor", text: "test" });
console.log(response, "response here");
};