-
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
Your Complete Guide to Salesforce Developer Training Resources
Salesforce Developers extend Salesforce orgs beyond declarative (point-and-click) configuration, build apps, and in turn, optimize business operations. Salesforce Developers will typically use two programming languages:…
Salesforce Winter ’19 Release — Key Points
Three times per year, Salesforce release a new version of their products with a range of new features. These versions are named to reflect the…
A 'Deep Clean' for Your Salesforce Org: Data and Metadata
As your business grows, so will your Org. And while a highly customized Salesforce Org reflects a booming business, there’s a critical difference between necessary…
Popular Salesforce Videos
4 Benefits of Salesforce Vlocity Communications Clouds
Vlocity Communications effortlessly collaborate with Salesforce Service Cloud to design a solution to garner personalized and uninterrupted experience for customers throughout their channels. This not…
How to Translate/Override Custom Labels in Salesforce
In this video, you can see how to translate or override custom labels that come with installed managed packages in Salesforce.
How Do All Salesforce Products Come Together
The products of Salesforce run completely in the cloud. Therefore, the companies don’t need to fret about costly maintenance and setup charges. Additionally, cloud technology…