API Calls Do Not Trigger Business Events

Is it a standard for all API functions to skip trigger execution?

Is there a document that explains the standards for what is allowed related to triggers and API functions?

For example, I create a product using the API, but my trigger for PRODUCT_CREATE does not execute. Upon inspection I see that the out-of-the-box API function calls “$this->product->create(DolibarrApiAccess::$user)” without the second argument “$no_trigger” or any way to affect whether or not to execute the trigger(s).

1 Like