-
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

Automation of JSON2APEX - My journey to writing my own automated tooling for this!
Lyrics Each and every time developing an integration, I wanted to automate the most tedious and routine part of it - creating wrappers for integration…

What is the Future Scope of Salesforce CRM?
Nowadays the adoption of Salesforce CRM is increasing at a tremendous pace. As per reports, Salesforce dominated the worldwide CRM market with a market share…

Benefits of Integrating Salesforce and Jira - Minimize Hidden Costs Incurred by the Lack of Collaboration
Do you feel like your productivity or your team is getting affected due to a lack of collaboration with another team? If that’s the case,…
Popular Salesforce Videos
How to implement Salesforce shield in 20 min?
Many organizations have “bought” Salesforce Shield but haven’t implemented it yet, due to some complexities that come along with security-related products. Pete and Brian will…
Create and Format Derived Measures
In the explorer, you can perform calculations on existing measures and use the results to create a new measure that’s not part of your dataset.…
How To Become A Salesforce Admin?
Wondering how t become a Salesforce Admin. Watch out for this tutorial video, it will answer all your questions. Join this useful group for Salesforce…