function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Matthias KimmigMatthias Kimmig 

How can I display the telephone number of the primary contact in the opportunity?

Hey,

I would like to display the telephone number of the primary contact in the opportunity. I tried to apply a custom field in SF. That did not work.

Now, I would like to define a field wich show me the telephone number. How can I define a field with apex or a visualeforce page?

The SOQL code is:
SELECT Contact.HomePhone FROM OpportunityContactRole WHERE IsPrimary = true

thanks for your answer.
Best Answer chosen by Matthias Kimmig
ShashForceShashForce
Hi Matthias,

This link should help: http://funwithsfdc.blogspot.in/2013/08/opportunity-contact-role-trigger.html

Thanks,
Shashank

All Answers

ShashForceShashForce
Hi Matthias,

This link should help: http://funwithsfdc.blogspot.in/2013/08/opportunity-contact-role-trigger.html

Thanks,
Shashank
This was selected as the best answer
Keira ArnotKeira Arnot
The salesforce is an amazing forum and shares much useful contact with us. Primary contact in the opportunity can be displayed for the people. I found 0330 numbers by visiting this https://wenumber.co.uk/numbers/type-companies-organisations-use-0330-numbers/ page of WeNumber. This contact is very useful to keep the trust of the customers. Keep sharing more, thanks.