Skip to main content
Stack Overflow Jobs powered by Indeed: A job site that puts thousands of tech jobs at your fingertips (U.S. only). Search jobs

Questions tagged [domain-layer]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
9 votes
1 answer

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 ...
SeanW's user avatar
  • 672
4 votes
0 answers

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 ...
Edmondo's user avatar
  • 1,712
3 votes
2 answers

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 ...
Keith C's user avatar
  • 136k
2 votes
2 answers

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 ...
Customer Foster's user avatar
1 vote
1 answer

Enterprise Architecture, Domain layer - handling multiple records

I'm developing a project using fflib's Enterprise Architecture patterns, based on their example app ( I am a bit confused ...
mmm321321's user avatar
  • 659
1 vote
0 answers

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 ...
Doodool_Tala's user avatar
0 votes
1 answer

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 ...
kl2's user avatar
  • 343
0 votes
1 answer

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 ...
Carlos Naranjo's user avatar
0 votes
1 answer

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 ...
the-mad-neuroscientist's user avatar
0 votes
1 answer

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 ...
Doodool_Tala's user avatar
-2 votes
1 answer

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, ...
dev4life's user avatar
  • 510