-
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
Delete Default RecordType for Chatter User Profiles | Salesforce Developer Guide
There was a situation where I had to delete a Record Type from an Object and Page Layout for that Record Type. The record type…
Salesforce Duplicate Management Became Easier
Peeklogic Smart Duplicate Manager. Salesforce Duplicate Management Became Easier Peeklogic helps to provide configure, modernize, and customize solutions for the Salesforce business. Peeklogic uses development…
Take Survey/Feedback using Login Flows
Introduction Logins flows is one of the cool features in Salesforce of which lot of people are not aware about. What it does is, when…
Popular Salesforce Videos
4 Tips on How to Build Product Messaging & Positioning That Stands Out | Salesforce on Salesforce
Messaging and positioning work together and should be the North Star for any product launch. If done well, it will set you apart from the…
How to Create an Automated File Import in Salesforce Marketing Cloud
Cameron Robert shows how to create an automation to import files from your FTP into Data Extensions in Salesforce Marketing Cloud. File Import Automations are…
Using Salesforce as a Sales Rep | Salesforce Tutorials
Sales Rep Overview is for reps that own opportunities and carry a quota. Gain instant insight into your business over any time frame. Track won…