Tag Apex Trigger Scenarios

Create a Rollup-Summary trigger in Salesforce?

Table of Contents Prerequisite Create a Custom Field on the Account Object “Number of Contacts” with a Number Data Type that does not have any decimal point in it. Introduction to Apex Trigger Scenario Requirement (Roll-up Summary Trigger) Develop a…

Handler & Dispatcher in Apex Triggers?

So far in the previous blogs/videos we have only talked about how to write the apex trigger and we have developed all the code inside the apex trigger. However, as a best practice, we should not write the code inside…

How to Calculate discount for opportunity?

How to Calculate discount for opportunity in Salesforce based on percentage field? Table of Contents Introduction to scenario → Apex Trigger 5 Prerequisite Create a Custom field on Opportunity “Discount” and the data type of this field should be percent.…