Ticket event not working(Attachment Redacted from Comment) | Community
Skip to main content

Ticket event not working(Attachment Redacted from Comment)

  • February 27, 2024
  • 2 replies
  • 0 views

fahev

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.

2 replies

fahev
  • Author
  • March 1, 2024

Hi Team, 

Is there any update?


Hi Bala,
 
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: