-
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
MuleSoft Composer for Salesforce
MuleSoft Composer for Salesforce is the fastest and easiest way for non-developers to connect third-party applications and data to Salesforce using clicks, not code. No more…
Salesforce Marketing Cloud for Healthcare's Personalized Revolution
In today's competitive landscape, engaging patients and driving outcomes is vital. But legacy systems and siloed data often stand as formidable barriers. Enter Salesforce Marketing…
An Ulitmate Guide: Marketing Cloud In Salesforce And Its Benefits
As a marketer, do you often wish for an automated platform to streamline activities like lead generation, campaign management, handling marketing tasks, and tracking? Salesforce…
Popular Salesforce Videos
How to Use Customer 360 | Salesforce
See how Salesforce Customer 360, our entire portfolio of technology, unites your team with company data on one integrated CRM platform, delivering the personal experiences…
Salesforce Einstein Activity Capture Guide
Have you ever had issues maintaining accurate, up-to-date information between your Salesforce org and your clients? Einstein Activity Capture is here to work for you…
How To Use Salesforce Campaigns in Pardot
Learn campaign basics to help you plan your marketing strategy. In this video, Pardot experts guide you in: - Defining campaigns in Pardot and Salesforce…