I am trying to create a logic hook to insert record in relationship table.
I have created relation between Opportunity and a custom module Opportunity Items.
this is my code:
$oppItemsId = '' ;
$rel_name = 'opportunities_s_opportunity_items_1';
$oItems = new Opportunity();
$oItems = retrieve($OpportunityId);
it will give error "Call undefined function retrieve() " .
can any one please help me.
Thank you in advance.