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
sam_Adminsam_Admin 

Restrict duplicate contact role on opportunity

Is there anyway to restrict assigning same contact with different roles on opportunity?
Ex: I have "Test opportunity" and under contact roles i have contact "Joseph" that's been assigned twice as primary with different roles. I just want to know if there is any possibility to restrict assigning same contact again if it already exists under contact role
SandhyaSandhya (Salesforce Developers) 
Hi Sam,

Please refer below link for similar discussion.

http://salesforce.stackexchange.com/questions/133132/how-to-avoid-creation-of-duplicate-opportunity-contact-role-for-every-newly-crea
 
Hope this helps you!

If this helps you please mark it as solved.

Thanks and Regards
Sandhya