AnsweredAssumed Answered

How to get data via BeanFactory in custom file ?

Question asked by Autchara Chaiprom on Jan 27, 2016
Latest reply on Feb 12, 2016 by Autchara Chaiprom

I try to use BeanFactory to get data in Case module but nothing return.


$bean = BeanFactory::getBean('Cases');
$name = $bean->name;
echo $name;




How to use BeanFactory in custom file ?

SugarCRM Enterprise, Version (Build 1163)





---------------------------- More ------------------------------

I got this error when put ini_set('display_errors', 1); into my code.

Fatal error: Class 'BeanFactory' not found in /sugarcrm/addon/reminder/testBean.php on line 26