Attachment Redacted from Comment event link: https://developer.zendesk.com/api-reference/integration-services/trigger-events/ticket-events/#attachment-redacted-from-comment
When clicking the Redact button, I need to restrict the agent.
code:
client.on('ticket.AttachmentRedactedFromComment', () => {
console.log('it was triggered ------------------ attachment redacted from comment' );
const errorMessage = `Ticket not saved!`
return true? errorMessage: true;
});
This is the code I am using to restrict the agent from deleting (redacting) the attachment. The event is not working (ticket.AttachmentRedactedFromComment).
Thanks in advance.
This is the code I am using to restrict the agent from deleting (redacting) the attachment. The event is not working (ticket.AttachmentRedactedFromComment).
Thanks in advance.
The event you referenced is not an Apps Framework event. So there isn't a way to prevent redaction from within UI when the agent has permission to do so. To restrict agents' ability to redact ticket content, you can either: