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

Update Opportunity after OpportunityContactRole is inserted

I'm sure somebody if not a lot of people have gone through this before. I need to run a simple method to update an Opportunity after a OpportunityContactaRole has been inserted. How have people gotten around not being able to make an OppContactRole trigger? I saw some suggestions about making a custom object to replicate that object, thats not going to happen in my situation. 


I see that Opportunity LastModifiedDate is updated when an OpportunityContactRole is created but the actual Opportunity or even Contact triggers do not run after that. There has to be a way to do this. 

sushant sussushant sus
if their is some relation between OpportunityContactRole and opp then we can write trigger on OpportunityContactRole to update some field on opportunity ..

please write which field you want to update on opp