Deepser allows you to customize every entity, also triggering events when a record is loaded, changes or is deleted.
Think about a CRM integration, so that when a user is edited in Deepser we can send the information to the CRM software; or when a request is completed we could automatically update the amount of time spent on a project management software or on the company ERP.
It is possibile to configure all those events in the menu: System > Custom Fields .
The first screen has a grid of all modules installed in Deepser.
To see the custom events for a specific entity (we will use as an example the module Service, entity Operations) click on the row in the grid.
We access the main screen with the model data (Module / Entity) we are editing.
“Model” tab is not important: it only summarizes the data of the entity we are editing.
The tab Fields is described in the following guide: Custom Fields.
To configure new Custom Events, go to the tab Events. To configure a new Event, click the button Add Event.
We can see the Event form:
The fields have the following meaning:
|Type||Type of the Event (always executed server-side). We can have several values:
|Position||The order in which the event is executed.|
|Status||If Enabled the event is run, otherwise not.|
|Method||Custom PHP code to be executed for the selected event.|