AnsweredAssumed Answered

Update bean via BeanFactory not save in change log. How do I keep in log (audit)?

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

Hi all,

 

$bean = BeanFactory::retrieveBean('Cases', $caseid, array('disable_row_level_security' => true));
$bean->status = $previousCaseStatus;
$bean->save();

 

I created custom EntryPoint.

I using BeanFactory to update record like code above but my sugar not keep record in change log.

I checked Audit for status filed in Studio but after I update via BeanFactory sugar not keep change log when I changed manually it save in change log.

 

How do I keep my updated record in change log ( <module>_audit ) ?

 

 

Ref: CRUD Handling

http://support.sugarcrm.com/Documentation/Sugar_Developer/Sugar_Developer_Guide_7.5/API/Classes/SugarBean/CRUD_Handling/…

 

 

Sugarcrm Ent 7.6

Thanks,

M

Outcomes