Methods
ChatAfterSaveNewMessage
(403) Called after a chat message is saved.Input values
The message has a list of clickable options. Options are as JSON array in specialParam.
ChatBeforeSaveNewMessage
(402) Called before a chat message is saved.Input values
The message has a list of clickable options. Options are as JSON array in specialParam.Output values
<table><table><thead><tr><th>Variable</th><th>Description</th></tr></thead><tbody><tr><td>chatMessage.message</td><td></td></tr><tr><td>chatMessage.specialType</td><td>Special type of message</td></tr><tr>
ChatNewSession
Fires when a new chat session starts. Corresponds to the webhook chatsession.created event.Input values
ChatSessionChangedStatus
(401) Called when session changes status. Equivalent to webhook chatsession.changed.Input values
CompactModeInjection
(200) Add custom stuff to our CompactMode client.Input valuesnoneOutput values
CustomerCenterAuthentication
(210) Called when customer logs into Customer centre.Input values
Output values
CustomerSetSubscriptions
(302) Called when setting subscriptions from Manage subscription page.Input values
DbiTaskFailed
(301) Called when a DBI task fails to execute successfully.Input values
ImportMailAfterProcessing
(304) Called after email is processed by email filters and save to the system.Input values
In addition, any variables set by the email filter are also available with the name specified in the email filter.
ImportMailBeforeProcessing
There are several variables available in this context.- To get a variable:<code>getVariable(“xxx”)</code>
- To set a variable:<code>setVariable(“xxx”, <value>)</code>, where <value> is a valid value for the field you are trying to set.
Input values
Output values
MainMenu
(113) Runs when the main menu is rendered.NewNotifyTicketFromForm
(105) Called when a new ticket was created from a form.Input values
NewTicket
(100) Runs when a new ticket is created.Input values
NewTicketFromCustomerCenter
(101) Called when a new ticket is created and saved from Customer centerInput values
NewTicketFromCustomerCenterBeforeSave
(103) Called before a new ticket is created and saved from Customer center.Input values
Output values
NewTicketFromEmail
(102) Runs after ImportMailAfterProcessing (304) if ticket did not exist.Input values
NewTicketFromForm
(106) Called when a form submission creates a new ticket.Input values
NewTicketFromSpmLink
(104) Called when a mailing link was clicked and mailing specifies link tracking.Input values
SalesAfterSaveAppointment
(1101) Called after an appointment is saved. EventData contains all variables passed by datahandler in the Sales client. It is also possible to create and pass custom variables from BeforeSave event trigger.Input values
SalesAfterSaveContact
(1105) Called after a contact is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveDocument
(1104) Called after a document is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveCustomObject
(1117) Called after a Custom object is saved. EventData contains all variables passed by datahandler in the Sales client.Note: This trigger is only supported in New Service with CustomObject FeatureToggleInput values
SalesAfterSavePerson
(1106) Called after a person is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveProject
(1109) Called after a project is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveProjectMember
(1011) Called after project member is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveQuote
(1103) Called after an quote is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveQuoteLine
(1113) Called after an quote line is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveAcceptQuote
(1114) Called after saving a quote approval. EventData contains all variables passed by datahandler in the Sales client.This trigger is only available as CRMScript trigger.Input values
SalesAfterSaveRejectQuote
(1115) Called after saving quote rejection. EventData contains all variables passed by datahandler in the Sales client.This trigger is only available as CRMScript trigger.Input values
SalesAfterSaveRelation
(1107) Called after a relation is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveSale
(1108)Called after a sale is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveSelection
(1110) Called after selection is saved. EventData contains all variables passed by datahandler in the Sales client.SalesAfterSaveSelectionMember
(1112) Called after selection member is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveStakeholder
(1002) Called after a sale stakeholder is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesAfterSaveTicket
(1116) Called after a ticket is saved. EventData contains all variables passed by datahandler in the Sales client.Note: This trigger is supported only in New Service
Input values
SalesBeforeSaveAppointment
(1001) Called before an appointment is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveContact
(1005) Called before a contact is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveCustomObject
(1018) Called before a Custom object is saved. EventData contains all variables passed by datahandler in the Sales client.Note: This trigger is only supported in New Service with CustomObject FeatureToggleInput values
SalesBeforeSaveDocument
(1004) Called before an document is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSavePerson
(1006) Called before a person is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveProject
(1009) Called before a project is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveProjectMember
(1011) Called before project member is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveQuote
(1003) Called before an quote is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveQuoteLine
(1013) Called before an quote line is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveAcceptQuote
(1014) Called before saving quote approval. EventData contains all variables passed by datahandler in the Sales client.This trigger is only available as CRMScript trigger.Input values
SalesBeforeSaveRejectQuote
(1015) Called before saving quote rejection. EventData contains all variables passed by datahandler in the Sales client.This trigger is only available as CRMScript trigger.Input values
SalesBeforeSaveRelation
(1007) Called before a relation is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveSale
(1008) Called before a sale is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveSelection
(1010) Called before selection is saved. EventData contains all variables passed by datahandler in the Sales client.SalesBeforeSaveSelectionMember
(1012) Called before selection member is saved. EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveStakeholder
(1002) Called before a sale stakeholder is saved.EventData contains all variables passed by datahandler in the Sales client.Input values
SalesBeforeSaveTicket
(1016) Called before a ticket is saved. EventData contains all variables passed by datahandler in the Sales client.Note: This trigger is only supported in New Service
Input values
SalesLoadCustomObject
(1017) Called before a Custom object screen is loaded. EventData contains all variables passed by datahandler in the Sales client. Possible to manipulate field values by using setOutputValue()Note: This trigger is only supported in New Service with CustomObject FeatureToggleInput values
SalesLoadTicket
(1020) Called before a ticket screen is loaded. EventData contains all variables passed by datahandler in the Sales client. Possible to manipulate field values by using setOutputValue()Note: This trigger is only supported in New ServiceInput values
SalesLoadTicketMessage
(1021) Called before a ticket message screen is loaded. EventData contains all variables passed by datahandler in the Sales client. Possible to manipulate field values by using setOutputValue()Note: This trigger is only supported in New Service
Input values
SalesSplitTicket
(1019) Called when performing Split Request. EventData contains all variables passed by datahandler in the Sales client. Possible to manipulate field values by using setOutputValue()Note: This trigger is only supported in New ServiceInput values
ScheduledTaskFailed
(300) Runs after scheduled task failedInput values
ServiceScreenAddMessageAfterSubmit
(703) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenAddMessageBeforeSubmit
(603) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenAddMessageLoad
(503) Called when screen is constructed, useful for setting default values into HTML elementsInput values
All HTML elements in the screen are added to the input values.
ServiceScreenEditCompanyAfterSubmit
(708) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditCompanyBeforeSubmit
(608) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditCompanyLoad
(508) Runs for <code>HtmlPage.lang_ticket_newCompany</code> screen. Called when screen is constructed, useful for setting default values into HTML elementsInput values
All HTML elements in the screen are added to the input values.
ServiceScreenEditCustomerAfterSubmit
(706) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditCustomerBeforeSubmit
(606) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditCustomerLoad
(506) Runs for <code>HtmlPage.lang_ticket_editCustomer</code> Called when screen is constructed, useful for setting default values into HTML elementsInput values
All HTML elements in the screen are added to the input values.
ServiceScreenEditExtraTableAfterSubmit
(710) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditExtraTableBeforeSubmit
(610) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditExtraTableLoad
(510) Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditTicketAfterSubmit
(704) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditTicketBeforeSubmit
(604) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenEditTicketLoad
(504) Called when screen is constructed, useful for setting default values into HTML elementsInput values
All HTML elements in the screen are added to the input values.
ServiceScreenForwardAfterSubmit
(709) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenForwardBeforeSubmit
(609) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenForwardLoad
(509) Runs for <code>HtmlPage.forward</code> event. Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenListTicketMessagesAfterSubmit
(702) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenListTicketMessagesBeforeSubmit
(602) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenListTicketMessagesLoad
(502) Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenNewQuickTicketAfterSubmit
(701) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenNewQuickTicketBeforeSubmit
(601) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenNewQuickTicketLoad
(501) Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenNewTicketAfterSubmit
(700) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenNewTicketBeforeSubmit
(600) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenNewTicketLoad
(500) Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenViewCompanyAfterSubmit
(707) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenViewCompanyBeforeSubmit
(607) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenViewCompanyLoad
(507) Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenViewCustomerAfterSubmit
(705) Called after screen is submitted and values are saved, useful for performing after processing.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenViewCustomerBeforeSubmit
(605) Called before screen is submitted and values are saved, useful for validations with blocking of save.Input values
All HTML elements in the screen are added to the input values.
ServiceScreenViewCustomerLoad
(505) Called when screen is constructed, useful for setting default values into HTML elements.Input values
All HTML elements in the screen are added to the input values.
TicketActivated
(113) Runs when ticket is saved and status changed from postponed to active.Input values
TicketChangedCategory
(141) Runs when a ticket is saved and the ticket category changes ID.Input values
TicketChangedOwnedBy
(142) Runs when a ticket is saved and the owner changed.Input values
TicketChangedPrimaryCustomer
(143) Runs when a ticket is saved and the customer ID changes.Input values
TicketChangedPriority
(140) Runs when a ticket is saved and priority changed.Input values
TicketChangedSlevel
(145) Runs when a ticket is saved and the security level changed.Input values
TicketChangedTicketStatus
(144) Runs when a ticket is saved and status changed. If user-defined statuses are present in solution available values will differ from below.Input values
TicketClosed
(110) Runs when a ticket is saved and the status changes to closed.Input values
TicketDeleted
(112) Runs when a ticket is saved and the status changes to deleted.Input values
TicketExternalMessageAdded
(152) Called for all external messages added to a ticket, following a call to the TicketMessageAdded trigger.Input values
TicketInternalMessageAdded
(151) Called for all internal messages added to a ticket, following a call to the TicketMessageAdded trigger.Input values
TicketMessageAdded
(150) Called for all messages added to a ticket, followed by call to either <code>TicketInternalMessageAdded</code> or <code>TicketExternalMessageAdded</code> trigger.Input values
TicketMessageSentimentCalculated
(153) Runs when a new sentiment is calculated.Input values
TicketPostponed
(111) Runs when a ticket is saved and the status changed to postponed.Input values
TicketReopened
(120) Runs when a ticket is saved and the status changed from closed to active.Input values
TicketReopenedFromCustomerCenter
(121) Called when a ticket is reopened from Customer center.Input values
TicketReopenedFromEmail
(122) Runs after ImportMailAfterProcessing (304) if ticket existed before.Input values
TicketSave
Called when a ticket is being saved.Input values
OutboxItemCreated
Called when an outbox item is being created (outbound email or SMS).See also tutorial.