AnsweredAssumed Answered

Generating an ID with BeanFactory

Question asked by Web Team on Jul 2, 2019
Latest reply on Jul 5, 2019 by Viktor Ranga

Hello,

 

I am having trouble generating a new record with BeanFactory, i receive:

PHP Fatal error:  Uncaught Error: Class 'Sugarcrm\Sugarcrm\Util\Uuid' not found in /home/sugar8/public_html/include/utils.php:1428

 

my code looks like this

 

<?php

if (!defined('sugarEntry')) {
define('sugarEntry', true);
}
require_once '/home/sugar8/www/data/BeanFactory.php';
require_once '/home/sugar8/www/include/utils.php';


$testAccountBean = BeanFactory::newBean('Bugs');
$id = create_guid();

?>

 

Thanks,

Outcomes