Blogs

  • Create A Trigger To Tally The Quantity Of Associated Child Records linked To The Parent Object.

    Create a trigger that calculates the count of child records related to parent records. Implement a custom rollup summary field using an Apex trigger. Establish a rollup summary on a lookup relationship using a trigger. To illustrate the issue, let’s consider an example. We have a lookup relationship between Accounts and Contacts, and we need…

    Read more…

  • How To Determine If Record Values Have Been Modified In Apex Triggers

    How to Compare Old and New Values in Salesforce Triggers In Salesforce triggers, we can check if record values have changed by comparing the old values to the new ones. The Before Update and After Update triggers are invoked based on the Update DML event occurring, regardless of which field value is updated on the…

    Read more…

  • What Does The Term Wrapper Class Mean In Salesforce Apex?

    A wrapper class in Salesforce Apex refers to a class, data structure, or abstract data type that encompasses various objects or collections of objects within its structure. A wrapper class is essentially a custom object created by a programmer, defining its properties according to specific needs. In Salesforce, when we think of a custom object,…

    Read more…