
1 respuesta

Hi Serena, Assuming Opportunity is the "relatedTo" attribute, you can do this without a component or controller:
<apex:repeat value="{!relatedTo.OpportunityContactRoles}" var="oppConRole">
<apex:outputText rendered="{!oppConRole.Role='Solutions Consultant'}">
<tr><td>{!oppConRole.Contact.Name}</td></tr>
</apex:outputText>
</apex:repeat>
Hope this helps.
Kindly mark this as solved if the reply was helpful so that it gets removed from the unanswered queue which results in helping others who are encountering a similar issue.Regards,Nagendra