I am trying to link documents from the cases module to to the opportunity module via a logic hook and looking for a code snippet to help.
I am trying to link documents from the cases module to to the opportunity module via a logic hook and looking for a code snippet to help.
Hi Brian Hanks
The code may looks like that:
$bean->load_relationship('documents'); $doc_id_list = $bean->documents->get(); $opp = BeanFactory::getBean('Opportunities', $opp_id); $opp->load_relationship('documents'); $opp->documents->add($doc_id_list);
Regards
Hi Brian Hanks
The code may looks like that:
$bean->load_relationship('documents'); $doc_id_list = $bean->documents->get(); $opp = BeanFactory::getBean('Opportunities', $opp_id); $opp->load_relationship('documents'); $opp->documents->add($doc_id_list);
Regards