AnsweredAssumed Answered

Undelete a record via $bean

Question asked by Sylvain GREZE on Mar 8, 2018
Latest reply on Mar 8, 2018 by Sylvain GREZE

Hi there,

 

I'm trying to undelete a record marked as deleted with the folowwing instructions:

 

$account = BeanFactory::getBean('Accounts', 'myAccountId', array(), false);

$account->mark_undeleted();

$account->save();

 

In the database I can see the record is still deleted?

Am I missing something?

 

SugarCRM Entreprise 7.7.1.2

 

Thanks,

 

Sylvain

Outcomes