Questions tagged [domain-layer]
The domain-layer tag has no usage guidance.
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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, ...