Recent searches


No recent searches

Ticket event not working(Attachment Redacted from Comment)



Posted Feb 27, 2024

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.

1

2

2 comments

Hi Team, 

Is there any update?

1


image avatar

Christopher Kennedy

Zendesk Developer Advocacy

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:
 

0


Please sign in to leave a comment.

Didn't find what you're looking for?

New post