-
How can i write a Salesforce trigger for below given scenario ?
write a trigger on opportunity which gives an error if both the conditions are true:
condition1 : if opportunity contact role is empty
AND
condition 2: if opportunity stage is changed to 'closed Won'
Log In to reply.
Popular Salesforce Blogs

How Can Integrating Your Business Processes with Salesforce Deliver Great User Experience
There have been plenty of celebrities that have used this famous saying to try to get preferential treatment at a restaurant, to get VIP treatment…

Salesforce Commerce Cloud: Delivering Innovation with a Difference
Dip in revenue, inconsistent customer experience, sluggish pace of operations and straight-jacketed scalability aren’t good for business, but when they become routine, the doom isn’t…

5 Smart Design Tips for Salesforce Lightning
Being switched on in the Winter ‘20 release, Salesforce Lightning Experience is on everyone’s mind. Today our CTO, Or Weissler, is sharing 5 smart tips…
Popular Salesforce Videos
What is Salesforce CRM?
What is Salesforce CRM? Join this useful group for Salesforce job & career info and learn all about Salesforce CRM.
Marc Benioff talks Salesforce - AT&T deal, office health safety and online media regulation
Salesforce’s Customer 360 will enable AT&T to deliver highly-tailored customer experiences seamlessly across retail, marketing, online, business, and more. AT&T will utilize Salesforce’s entire portfolio…
4 Salesforce Implementation Challenges Faced by Enterprises
Let's have a look at some of the common challenges enterprises face while implementing Salesforce platform, if you need any help in implementing Salesforce from…