AnsweredAssumed Answered

Calculated field not working when linked relationship between module via custom entrypoint without authenticate

Question asked by Autchara Chaiprom on Nov 9, 2018
Latest reply on Nov 9, 2018 by Autchara Chaiprom

I have 2 modules want to linked Account and Calls, linked relationship is worked except calculated fields of parent module all gone.

From my code below,

I have 2 methods to linked both also same issue.

After trigger once via interface calculated fields is back.

 

// 1
$bean = BeanFactory::newBean('Calls');
$bean->parent_id = $args['PARENT_ID'];
$bean->parent_type = $args['PARENT_MODULE'];

// 2
$parenBean = BeanFactory::retrieveBean($args['PARENT_MODULE'], $args['PARENT_ID'], array('disable_row_level_security' => true));
$parenBean->load_relationship('calls');
$parenBean->calls->add($bean->id);

 

Have someone cause same issue ? any suggestion for me ?

Sugar Pro 8.0.1

Thanks,

M

Outcomes