• BeanFactory::getBean not returning existing record in SugarCRM custom code

    I have a SugarCRM integration. It has the following line in the code $beanToSync = BeanFactory::getBean($moduleToCheck, $beanToSync->id); In $moduleToCheck the module 'Leads' is passed and $beanToSync->id have an ID of an existing Lead in SUgarCRM…