Salesforce Trigger Handler Framework

Поделиться
HTML-код
  • Опубликовано: 11 сен 2024
  • Salesforce Trigger Handler Framework | EP-14

Комментарии • 6

  • @FreerideTaurus
    @FreerideTaurus 3 месяца назад +1

    @Apex_Hours, please help me understand a few of things here: 1. It appears that the presenter used the terms "handler" and "helper" interchangably here. There is a "helper" class with the business logic and a trigger. Where's the handler class and how is it implemented for the various trigger events?? 2. The presenter is using nested for loops, which is not best practice. Couldn't she have solved for this with a map? 3. The code did not even use the update line that was supposed to concatenate the Contact names into the custom field All_Contacts__c (which is not mentioned anywhere in the video) and since Contacts are shown as related object records on the Account record page anyway, what business problem did this solve? Thank you!

    • @apexhours
      @apexhours  3 месяца назад

      Check this hope this will help you www.apexhours.com/trigger-handler-pattern-in-salesforce/

  • @sivaprasad-pw3xt
    @sivaprasad-pw3xt 3 месяца назад +1

    the code which you shown for loop with in for loop we need to use map to reduce space and time complexity.

    • @apexhours
      @apexhours  3 месяца назад

      Check all Salesforce Apex best practice here www.apexhours.com/apex-code-best-practices/

  • @farmangour2958
    @farmangour2958 3 месяца назад +1

    I have a doubt in ContactNameOnAccount trigger, in both if condition you mentioned trigger.isUpdate, so if we update the contact handler will be called two times because both if will be true, if the handler calls two times two values will pass New and Old, how it will be handled by handler?

    • @apexhours
      @apexhours  3 месяца назад

      Learn more about Trigger handler platter here www.apexhours.com/trigger-handler-pattern-in-salesforce/