which methods of evantData supprots by Trigger of Tickets

hi,

by Trigger of Tickets, I get current ticket with:

Integer ticketId = ed.getInputValue("ticketId").toInteger();
Ticket t;
t.load(ticketId);

but I want to block to save ticket or change its status, if any condition not filled by User then set message in messagebox to User about Info.

ed.setMessage("To change Status, You should set value of *** ");
ed.setBlockExecution(true);

bit it doen't work to block saving and set Message.. The Message with Notify is not a idea solution at this point.

Is there any better idea? which methods of EventData deosn't support Ticket?

Thanks!

RE: which methods of evantData supprots by Trigger of Tickets

Hi,

Ticket triggers are different than CRM triggers as they do not have any beforeSave event, meaning that when they trigger data is already saved and changed. 

Suggest you instead use custom screen to validate such business logic.

By: Michel Krohn-Dale 4 Nov 2019

RE: which methods of evantData supprots by Trigger of Tickets

Hallo Michel,

I have tried with Trigger save Ticket, change Status but it doesn't works. But you are right, that is the point, there is no BeforeSave Events for Tickets. This should be a gap in ejTicket system.

I will sove it in crm scripts for extra Menus.

Thanks!

By: Jianchun You 4 Nov 2019