-
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

5 Best Sales Cadence Tools for Automating Your Outreach
Today, sales tools are more than simply "nice-to-haves". They assist sales representatives by automating routine processes and increasing overall sales effectiveness to free up time…

Different Types of Sandboxes in Salesforce
What is Sandbox? A copy of the production organization is known as a sandbox. Sandboxes allow you to create multiple copies of an organization in…
Popular Salesforce Videos
Know Why Salesforce Is Secure For Your Business Data
Salesforce.com uses a variety of methods as mentioned in the video - to ensure that your business data is safe, secure, and available only to…
How Salesforce Industries can be Used on Top of Salesforce?
Salesforce Industries offers pre-built solutions on the Salesforce platform that solve the needs of particular industries. Vlocity takes these common requirements and packages them into…
Salesforce - Sage ERP Integration
Salesforce Integration with Sage ERP (SageX3 / Sage100 / Sage300) delivers seamless, real-time, bi-directional integration that plays a pivotal role in unlocking the potential of…