On 12/01/16 12:22, Matteo Baranzoni wrote: > try > $module=Vtiger_Module::getInstance('Events'); > You need to add the Vendor module to vtiger_ws_referencetype with the right fieldtypeid. HTH Al