Skip to main content
Planned maintenance impacting Stack Overflow and all Stack Exchange sites is scheduled for Monday, September 16, 2024, 5:00 PM-10:00 PM EDT (Monday, September 16, 21:00 UTC- Tuesday, September 17, 2:00 UTC). The email/password authentication method will be unavailable for logging in and registering. Read more here
2 votes
Accepted

Enterprise Architecture, Domain layer - handling multiple records

The example in fflib-apex-common-samplecode assumes that all opportunities will get a common discount% Your conundrum is a common one Option 1 If in fact you want the domain class to apply the ...
cropredy's user avatar
  • 72.6k
1 vote

How do fflib_SObjectDomain methods implement database transactions (trigger context)?

This method is called on before insert, using the parameter Trigger.new; any changes you make to those records will be committed after the trigger completes successfully. When you give a method a ...
sfdcfox's user avatar
  • 500k

Only top scored, non community-wiki answers of a minimum length are eligible