-
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
Build Your First Blockchain with Salesforce Apex
Introduction of Blockchain According to Wikipedia "A blockchain, originally blockchain is a growing list of records, called blocks, which are linked using cryptography." Blockchain was…
What are Record-triggered Flows in Salesforce? | The Ultimate Guide
One of Salesforce's most potent features is Record-Triggered Flows (RTFs). You may automate procedures and lessen human labor by using RTFs to design flows that…
Page Reference in Lightning | Salesforce Lightning Tutorial
The force:navigateToComponent tag will be deprecated after Summer 18 because it is no longer in use. From now on, You may now control which Lightning…
Popular Salesforce Videos
Explain Standard Business Features of Salesforce?
Standard business features of Salesforce are Contact Management, Opportunity Management, Lead Management, Quote Management, Sales Management and Sales Forecasting. Watch the video to learn all…
Salesforce Online Training Videos For Beginners | Campaign Management
Learn all about the Salesforce campaign management in this video. Watch and learn. If you have any doubts or questions, please let us know in…
How to Create Bulk Custom Fields in Salesforce using BOFC App | Salesforce | BOFC | AppExchange
Want to perform multiple operations? This quick video walks you through how to create mass custom fields of any type (Master Detail, Lookup, Formula, Primitive…