Blogs

  • Apex Trigger Practice (3) – Trigger on Attachments to count the number of attachments

    Question Hints: Account is standard object and attachment is child object. Requirement: We need to create an Apex Trigger on Attachments to count the number of attachments on the object – let’s take Account – and store in number field “Number of attachments”. Trigger is considering all the possible scenarios in this – after insert, after…

    Read more…

  • Apex Trigger Practice (2) – update the Contact based on Contact Role

    Question Related Components: Requirement: Implementation Verification: Upload your code in Github and provide the link of public repo in comment below, it will be reviewed based on availability and feedback will be shared. P.S: Be honest, watch the clock to check your efficiency. Happy coding.

    Read more…

  • Apex Trigger Practice (1) – Update Account Open Case Status

    Question Hints: Account is parent object of Case. Case’s status field is categorized into two types – Open or closed which can be tracked by field “IsClosed”. Requirement: On Account, there is a checkbox field “Has Open Case”, if there is any open Case under account, this field should be checked. Please make sure all…

    Read more…