I have a relate field in Opportunities to Calls and when a users adds a Call to the Opportunity I want this relate field to update so the latest call is shown in the Opportunity.
I have created a logic hook in Calls but doesn't seem to work, has anyone got any pointers to what I am doing wrong please.
function after_save_hook($bean, $event, $arguments)
if($bean->parent_type == "Opportunities")
$oppid = $bean->parent_id;
$opp->call_id_c = $bean->id;
Any help much appreciated.