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
Fiaz AhmadFiaz Ahmad 

Add opportunity for specific contact

Hi,
   I want to add an opportunity for a specific contact. I mean to say whenever I see my contact the releated opportunities show bellow under opportunity block. I want to do this with salesforce API and PHP.
Sorry for my bad english.

Park Walker (TAGL)Park Walker (TAGL)

To link a contact to an opportunity you will want to create an OpportunityContactRole record with the Oportunity Id and the Contact Id of the records to be linked.

esy softesy soft

Hello,

Any code for this? I have opportunity ID and contact ID, how can i do this please? how to use this method?

Thank you