Servicely Administration
Scripting
Trigger
5 min
overview a trigger automates business logics before/after a record creation/update/deletion for example, a trigger can automatically set a record’s field to a particular value, after you make a certain change on that record it runs on the server side, has access to the current record being created/updated/delete and access to classes and functions within script libraries javascript knowledge is required creating a trigger true 295,242 8395363694168,768 8395386181643,770 3209250124189 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type examples the following is aimed to give some general examples of what triggers can be used for/can do you may also look at out of box triggers for reference such as the ones for incident management or request management auto assign an incident to a user that progresses it from new to work in progress true 351,1726 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type on creation or update of a user account, synchronise to the conversation user account table, for whatsapp sofi chat purposes true 347,1730 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type make an api call to synchronise an incident across to another ticketing system, using thirdpartyreference field that captures the other system’s ticket id this requires the use of a script library in this example, we would need one created called “incidentintegrationutil” that has a function called “synchtoothersystem” creating code to make outbound http api calls, you can refer to outbound http requests (scripted) true 353,1724 unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type unhandled content type