Skip to content
← Back to Index

OnTicketRejected

This hook runs after a Ticket Actor has been rejected. validationError can be used to block a rejection.

Type

filtrera
{
  hook: 'OnTicketRejected'
  ticket: Ticket
}

Effects

`effects.common.sendMessage` Sends a message to another actor after the ticket has been saved. Responses from the target actor is ignored.
`effects.common.scheduleJob` Schedules a job
`effects.common.sendEmail` Queues an email for delivery through the Sendings system
`effects.common.validationError` Aborts the rejection of the ticket and returns the error to the caller.
`effects.ticket.command.*` Applies a command to the actor. Replace `*` with the type of [command](/resources/actors/custom/ticket/commands/) you want to apply.

© 2024 Hantera AB. All rights reserved.