Changes

m
Line 11: Line 11:  
To execute personalized code after a Dolibarr event (create/modify/remove a third party/invoice/product or other), Dolibarr offers a mechanism of business triggers. This mechanism allows you to personalize a work-flow to have Dolibarr business events being synchronized into another application for example.
 
To execute personalized code after a Dolibarr event (create/modify/remove a third party/invoice/product or other), Dolibarr offers a mechanism of business triggers. This mechanism allows you to personalize a work-flow to have Dolibarr business events being synchronized into another application for example.
 
You can also use triggers to modify the behavior of Dolibarr itself: for example, to create automatically a contract when an invoice is validated.
 
You can also use triggers to modify the behavior of Dolibarr itself: for example, to create automatically a contract when an invoice is validated.
 +
 +
Note that triggers is a feature for developers that is limited to business CRUD events (Create | Read | Update | Delete). There is another features for developers to inject custom code in application called the [[Hooks system]].
    
So, to add your own code that will be triggered by a Dolibarr trigger, this is the way to process:
 
So, to add your own code that will be triggered by a Dolibarr trigger, this is the way to process: