7
votes
Accepted
How to opt out of FLS validation when a SOQL query is run by a trigger?
I am partial to stripInaccessible because WITH SECURITY ENFORCED because the queries throw an exception if any of the fields are not available to the user. I would not make it automatic to trigger ...
4
votes
Anyone know of any open source ORM (domain layer) initiatives for Salesforce?
There's at least one library, by FinancialForce, you can use. Also, some features you're asking for are actually native. Let's go down the list.
Model an arbitrarily deep hierarchy
Be creatable in ...
3
votes
Accepted
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
I have find one workaround for my requirement.
My flow is
Create a static variable isSupportCRUD with default value true in Base domain class.
Create a new method disableTriggerCRUDSecurity() in the ...
3
votes
Accepted
Setting up a different marketing platform while working in Salesforce Marketing Cloud
If you've delegated a subdomain to Salesforce using NS records, you'd not be able to do anything with the subdomain... ExactTarget.com's nameservers are the authority and manage the entire zone file ...
2
votes
Accepted
ff Domain Layer test with disable, enable trigger context
When you bypass trigger logic, you need to bookend your disablement. Typical flow is as below:
@IsTest static void myTest()
{
// disable trigger
// insert data
// enable trigger
Test....
2
votes
Accepted
Anyone know of any open source ORM (domain layer) initiatives for Salesforce?
I've gone ahead and created a small part of such a solution. It is a Visualforce page that uses describe calls to work out the relationships, and then generates a set of SObject wrappers that have ...
2
votes
How can we configure a custom domain for Lightning Experience?
You have Options to Serve a Custom Domain in Salesforce. You'll want to read the entire article, plus the other article if you choose to use a Naked Domain (such as mydomainname.com versus www....
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 ...
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 ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
domain-layer × 11apex × 7
design-patterns × 4
fflib × 3
soql × 2
marketing-cloud × 1
trigger × 1
lightning × 1
unit-test × 1
code-coverage × 1
sobject × 1
field-level-security × 1
triggercontext × 1
sfmc-business-unit × 1
custom-domain × 1
architecture × 1
mydomain × 1
data-model × 1
cross-domain × 1
ip-warming × 1
object-relational-mapping × 1
email-settings × 1
enhanced-domains × 1