Blogs

  • Embarking On The Journey To Apex Heroism (Or Unraveling The Secrets Of A Java Class)

    So far, Head First Java has proven to be an easily digestible read. Its teaching method is engaging, featuring abundant visuals and a conversational style. The inclusion of puzzles, such as crosswords, fill in the blanks, and match-ups, aligns well with my preferred learning style. Despite my goal being to learn Apex, I find myself…

    Read more…

  • Example Of A Roll-Up Summary Trigger When The Parent Has A lookup Relationship With The Child

    Trigger Scenario: The following code example illustrates a Roll-Up Summary Apex trigger that updates the parent object “A__c” when a child object “B__c” is either deleted, inserted, updated, or reparented (parent changed from one record to another). Trigger Functionality: The trigger initiates by defining a set named “parentIds” to store the Ids of the parent…

    Read more…

  • Create A Trigger For A Roll-Up Summary To Calculate The Total Number Of Contacts Associated With An Account.

    In this blog post, we’ll explore an illustration of how to update the total contact count on an Account using a roll-up summary trigger, such as an Apex trigger combined with an aggregate query. This involves updating the child record count on a parent record in a lookup relationship, utilizing an approach that involves aggregate…

    Read more…