Questions tagged [domain-layer]
The domain-layer tag has no usage guidance.
11
questions
0
votes
0
answers
28
views
Enterprise Architecture, Domain layer - handling multiple records
I'm developing a project using fflib's Enterprise Architecture patterns, based on their example app (https://github.com/apex-enterprise-patterns/fflib-apex-common-samplecode). I am a bit confused ...
0
votes
1
answer
58
views
How do fflib_SObjectDomain methods implement database transactions (trigger context)?
How is fflib applying the default values?
I'm working through the Apex Enterprise Patterns: Domain & Selector Layers trailhead module and I'm confused about how database transactions are ...
1
vote
0
answers
219
views
With latest fflib, do TriggerHandlers become service class consumers? If so what happens to UoW?
With the latest fflib, the trigger handler and domain logic were separated. I can see from the changes to the repo that previously, the Opportunities.cls domain class' onAfterInsert() method updates ...
0
votes
1
answer
107
views
How to incorporate cross-object logic on domain class using Apex Enterprise Patterns
Using the Apex Enterprise Patterns, I would like to incorporate cross-SObject logic in my domain class. Is the following example a correct implementation?
Interaction__c records are created with ...
-2
votes
1
answer
471
views
How can we configure a custom domain for Lightning Experience? [closed]
We know that we can configure a custom domain for an Experiience Cloud site, but can we do that for Lightning Experience? In other words, instead of working from http://mydomainname.my.salesforce.com, ...
2
votes
2
answers
834
views
How to disable CRUD/FLS check from fflib domain layer for only some specific flows. By default it is enabled for all flows using base class
1- I am using fflib for my managed package.
2- By default CRUD/FLS are enabled for all domain/selector flows (Using Base class)
3- In a specific method which is used by site guest users, I want to ...
0
votes
1
answer
497
views
Setting up a different marketing platform while working in Salesforce Marketing Cloud
Currently I work in Salesforce Marketing Cloud
If I am working on a secondary marketing platform, can I use the same sub-domains in secondary platform (non-SFMC) that are currently being used in my ...
0
votes
1
answer
194
views
ff Domain Layer test with disable, enable trigger context
I'm trying to use fflib_SObjectDomain.getTriggerEvent(Accounts.class).disableAfterUpdate(); on my Account Domain Class to stop after updates operations to be fired from after insert operations for the ...
9
votes
1
answer
740
views
How to opt out of FLS validation when a SOQL query is run by a trigger?
I have a large Salesforce application with hundreds of SOQL queries. Currently, the code uses Schema.DescribeFieldResult data to determine if the logged in user has rights to each field in the SELECT ...
4
votes
0
answers
1k
views
How do Domain Driven Design principles apply to Salesforce development? (was: Is abstracting away SObject model a good practice for Apex Controllers?)
Domain-Driven-Design principles are largely adopted in companies embracing microservice architecture and one of the key ideas is to separate the data model of the persistence layer from the business ...
3
votes
2
answers
933
views
Anyone know of any open source ORM (domain layer) initiatives for Salesforce?
Object-Relational Mapping (ORM) mechanisms are widely available and used in other technology stacks, usually involving code generation. But searching here for ORM doesn't yield too much. While ...