Abstract Domain / DML Logic #337
-
Hey guys, really interested in learning about Apex commons as I want to implement in our org.
Thanks for your help |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
Hi @reignman5, I think I would solve your first question something like this:
Alternatively you can have a method "recalculateCurrentFields" on "Accounts" to filter on the recordtypes instead of doing that in the trigger handler. On your second question, The TriggerHandler method onBeforeInsert can have their own UnitOfWork that you can pass on to every service method that is invoked by the "onAterInsert" method. Something like so:
|
Beta Was this translation helpful? Give feedback.
-
Related discussion from eons ago: #153 |
Beta Was this translation helpful? Give feedback.
Hi @reignman5,
I think I would solve your first question something like this: