AnsweredAssumed Answered

Is it possible to insert record into audit table manually?

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

Hi everyone,

 

 

I use BeanFactory to update status in Case module. My Sugar not keep audit in 'View Change Log' when I change status via BeanFactory

but when I change status manually, It's  work properly.

 

Code update via BeanFactory

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

 

Look like this:

Capture2.PNG

 

I tied to use 'insert into ...' but it's very poor and doesn't work.

Is it possible to insert record into audit table? or anyone has an idea?

 

Sugar 7.6 Ent

Thanks,

M

Outcomes