-
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
Engaging User Communities with Salesforce Experience Cloud
For years, Salesforce customers have leveraged communities to deliver Salesforce-powered interactions to their users. However, these communities were limited to singular portals and websites. In…
Building Stronger Partnerships: How the Salesforce Partner Portal Empowers Success.
Building Stronger Partnerships: How the Salesforce Partner Portal Empowers Success The Salesforce Partner Portal is a powerful tool that empowers partners to build stronger relationships…
Custom "Range of Years" for "Standard Date Field" in Salesforce
Have you ever noticed that the standard date field shows year Range to only up to 7 years? What if we want that Range to…
Popular Salesforce Videos
AMPscript Lookup - Salesforce Marketing Cloud Functions in 5 minutes
Salesforce Marketing Cloud functions in 5 minutes! In this video, Cameron Robert shows how Lookup() works in Salesforce Marketing Cloud using some helpful visuals to…
Difference between Profile and Roles in Salesforce
Learn about the difference between Profile and Roles? Watch this video and do let us know if you have any questions or concerns.
8 Steps to Launch Your App on Salesforce AppExchange
AppExchange is the largest business app store in the world, with over 4,000 apps and millions of users. In this video, we will guide you…