-
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
Learn All About Salesforce CPQ Discount Schedule
Discount Schedule refers to the discount on the Products based on some particular criteria like Quantity of the product that customers buy, Term of subscription…
What ‘Sales Cloud Einstein: Forecasting’ has for sales representatives
Many Sales Leaders today rely on outdated systems and incomplete spreadsheets to project sales. Victims of inaccurate forecasts and underperforming businesses, they suffer lost deals…
Step by Step Procedure to Implement reCAPTCHA with Visualforce Page
Introduction Salesforce web apps are developed and used from a long time through Visualforce platform. These apps can provide better functionality and performance, but at…
Popular Salesforce Videos
Subscribe to Dashboards and Reports (Salesforce Lightning Experience)
By subscribing to a dashboard or report, you can have it refreshed and waiting in your inbox before the weekly sales meeting, or whenever you…
Salesforce CPQ Tips to Accelerate Sales Cycle
Learn how to accelerate your sales cycle with Salesforce CPQ! Optimize your product catalogue by streamlining listings, removing outdated items, and categorizing products effectively. Automate…
How Is Salesforce Overcoming the Rise In Generative AI?
Discover how Salesforce is harnessing the power of Generative AI to revolutionize customer experiences, streamline processes, and innovate like never before. In this extract discover…