fflib-apex-common
fflib-apex-common copied to clipboard
Common Apex Library supporting Apex Enterprise Patterns and much more!
lines in the testmethods that look like this: qf.selectField('name').selectField('Id').setCondition( 'name like \'%test%\'' )... do not work if the org has enabled Shield Platform Encryption (deterministic) on `Contact.Name`. Why? - You...
A [common pattern](https://andyinthecloud.com/category/apex/page/7/) is: ``` opp.AccountId.addError( error('You must provide an Account for Opportunities for existing Customers.', opp, Opportunity.AccountId) ); ``` Note: SFDC `addError` supports these signatures: - addError(String errorMsg) -...
Hi there, I am trying to query the ContentDocumentLink Object. When I write my query directly into my Service class as `List cdlList = [SELECT ContentDocumentId, LinkedEntityId FROM ContentDocumentLink WHERE...
A minor point but worthy of an enhancement If you define your Application class with Application.Domain _before_ Application.Selector, when you attempt to use this construction: fflib_ISObjectDomain domain = Application.Domain.newInstance(sObjIds); such...
There does not appear to be any tests for the new platform event methods (registerPublishBeforeTransaction, registerPublishAfterFailureTransaction and registerPublishAfterSuccessTransaction )
The issue: UnitOfWork does not resolve the relationship at update. Here is the problem description: Use "registerDirty" with a relationship to a parent record which will be inserted (updated?). Method...
I have question on StackExchange https://salesforce.stackexchange.com/questions/266322 about options that a developer can choose to enforce security on their selectors. Since I am working on an application that we are planning...
Encrypted fields can't be used in LIKE or Order By - fflib_SObjectSelectorTest uses Account.Name in order By - fflib_SobjectUnitOfWorkTest uses Opportunity.Name in LIKE and Order BY
Hello guys, During the use of fflib in my project, every time I have to register records in UnitOfWork I have to do something like this: ```apex fflib_ISObjectDomain accounts =...
I get the following message when I try to deploy on my production environment. It's weird because I was able to deploy the same package on my sandbox. From what...