Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Create bean
- $testAccountBean = BeanFactory::newBean('Accounts');
- // Set the new flag
- $testAccountBean->new_with_id = true;
- $id = SugarcrmSugarcrmUtilUuid::uuid1();
- $testAccountBean->id = $id;
- $testAccountBean->name = generateRandomString();
- $testAccountBeanId = $testAccountBean->save();
- echo $testAccountBeanId;
Add Comment
Please, Sign In to add comment