AnsweredAssumed Answered

How to I get the values of an Contact's opportunity role?

Question asked by Jeff Bickart on Dec 11, 2015
Latest reply on Dec 17, 2015 by Jeff Bickart

I have a Contact with an Opportunity. The Contact has a Role, Primary Decision Maker. How do I use a SugarBean to get this information?


$opp = BeanFactory::getBean('Opportunities', 'RECORD ID');



//if I use this logic, the opportunity_role_fields, opportunity_role_id, and opportunity_role have NULL values

foreach ($opp->contacts->getBeans() as $c) {



Any help would be appreciated



SugarCRM Pro 6.5.22