William Velzeboer
414145791d
Add domain method getRecordsContaining ( #67 )
2025-12-05 17:03:18 +00:00
William Velzeboer
73682a1ffa
Add getChangedFields to triggerContext ( #65 )
2025-01-27 13:04:22 +00:00
Wim Velzeboer
5bb4c0f1ad
Fix failing test in populated org
2024-07-30 11:18:30 +01:00
Wim Velzeboer
47702c194a
Remove incorrect automatic code styling
2024-04-10 10:40:04 +01:00
Wim Velzeboer
273e47f0db
Add method overload for getIdFieldValues to omit null values
2024-04-10 10:28:59 +01:00
Wim Velzeboer
64559fdbe5
Revert "Add method overload for getIdFieldValues to omit null values"
...
This reverts commit 003446ac97 .
2024-04-10 10:10:09 +01:00
Wim Velzeboer
003446ac97
Add method overload for getIdFieldValues to omit null values
2024-04-10 09:50:31 +01:00
Wim Velzeboer
6586ed6bb2
Add domain method getIdFieldsByStringField
2024-04-05 11:36:08 +01:00
Wim Velzeboer
3ac1dfac88
Add bypass to TriggerHandler
2024-03-01 18:48:23 +00:00
William Velzeboer
5f6062a61d
Revert "Update fflib_LogEventStoreListenerTest.cls"
2024-02-05 21:28:38 +00:00
William Velzeboer
a35e0d658c
Update fflib_LogEventStoreListenerTest.cls
2024-02-05 17:12:37 +00:00
Wim Velzeboer
4ccaf7afb1
Increase code coverage
2023-12-07 12:52:23 +00:00
Wim Velzeboer
fbed669ab8
Increase code coverage
2023-12-07 09:53:39 +00:00
Wim Velzeboer
4310d8b4eb
Make username more unique
2023-10-02 12:04:04 +01:00
wim
d114fecf4f
Remove Sharing Mode from Dynamic Application Factories
...
Sharing mode is no longer required as SOQL queries can now run in USER_MODE or SYSTEM_MODE.
2023-09-11 21:21:53 +01:00
wim
4390f83aef
Remove Sharing Mode from Dynamic Application Factories
...
Sharing mode is no longer required as SOQL queries can now run in USER_MODE or SYSTEM_MODE.
2023-09-11 17:18:53 +01:00
wim
a0fc1bd10d
Improve performance of Dynamic Application Factories
...
Also added a method overload to provide a Package Name.
Useful for DX based second generation packages. Now each package can have their own bindings.
2023-09-01 15:39:25 +01:00
William Velzeboer
b658e6226b
Merge pull request #50 from wimvelzeboer/feature/uuid
...
Add Uuid and HttpException. Logger now includes Uuid's
2023-08-01 14:00:20 +01:00
WimVelzeboer
752573c3cd
Add Uuid and HttpException. Logger now includes Uuid's
...
Signed-off-by: WimVelzeboer <william@velzeboer.nl >
2023-08-01 12:19:18 +01:00
WimVelzeboer
1b03239c6d
Refactor of getChildIdsById and getGrandParentIdById of fflib_SObject2
...
The methods are no longer depended on the domain method getRelatedFieldByDomainType, which could only relate a relationship with a single field. This change will allow to build the map with the correct fields when there are multiple relationships to the related SObjectType.
for example if an SObject has two relations to Account; BillingAccountId and AccountId, then we can now specify in the method parameters which relationship should be taken.
Signed-off-by: WimVelzeboer <william@velzeboer.nl >
2023-04-27 11:27:45 +01:00
WimVelzeboer
a4753d1db1
Add getChildIdsById to fflib_SObjects2
...
To retrieve a map of related ids from (grand-)child relationships
Signed-off-by: WimVelzeboer <william@velzeboer.nl >
2023-04-20 16:21:00 +01:00
WimVelzeboer
3d9e8fae8a
Add getDecimalById to fflib_SObjects2
...
Signed-off-by: WimVelzeboer <william@velzeboer.nl >
2023-04-13 11:10:45 +01:00
WimVelzeboer
59a2ea576a
Upgrade to API 57.0
...
Including refactor to System.Asset class
Signed-off-by: WimVelzeboer <william@velzeboer.nl >
2023-04-13 10:42:53 +01:00
WimVelzeboer
0b4d878382
Add domain method to map the record Id to a grand-grand-...-parent record Id
2022-05-25 12:22:48 +01:00
WimVelzeboer
54490cc32d
Fix for updated fflib-apex-common
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-05-09 16:05:54 +01:00
William Velzeboer
0773178d39
Merge pull request #38 from wimvelzeboer/feature/Factories
...
Add Factory method for records based on an Id field
2022-03-16 21:51:49 +00:00
WimVelzeboer
ad75a9b790
Add Factory method for records based on an Id field
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 21:16:25 +00:00
WimVelzeboer
3335482e8f
Add mergeMap to fflib_ArrayUtils
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 10:06:58 +00:00
WimVelzeboer
d139917d69
Add getAllValues to fflib_ArrayUtils
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-16 09:47:30 +00:00
WimVelzeboer
0943def0df
Add domain methods
...
getRecords(sObjectField, Id)
getRecords(sObjectField, Set<Id>)
getRecords(sObjectField, String)
getRecords(sObjectField, Set<String>)
getRecordsIsNot(sObjectField, Id)
getRecordsNotIn(sObjectField, Set<Id>)
getRecordsIsNot(sObjectField, String)
getRecordsNotIn(sObjectField, Set<String>)
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-08 11:27:58 +00:00
WimVelzeboer
ac1f7bbac0
Add fflib_SObjectFactory class
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-03-01 12:01:30 +00:00
William Velzeboer
4e8369cfbe
Merge pull request #32 from wimvelzeboer/feature/AddContainsAndLikeToCriteria
...
Add LIKE and Contains condition to Criteria
2022-02-25 11:16:44 +00:00
WimVelzeboer
23ec70e2f1
Add LIKE and Contains condition to Criteria
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-25 11:11:31 +00:00
WimVelzeboer
969b0fbba7
Improve fflib_SObjects2.getSObjectsByIdField
...
Add unit-test and method to domain template
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-24 09:43:38 +00:00
WimVelzeboer
acb5cdc98b
More domain methods
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-02-23 12:03:34 +00:00
WimVelzeboer
547b22a080
Increase unit-test coverage for fflib_Criteria to 80%
...
Also added method overloads for inSet and notInSet to allow for related field (field names as String)
Fix for issue #19
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-12 21:21:12 +00:00
William Velzeboer
89c2e23625
Fix failing unit-test
2022-01-12 11:14:02 +00:00
William Velzeboer
74f49d4eb4
Merge branch 'main' into main
2022-01-12 10:56:01 +00:00
WimVelzeboer
07d1ab977b
Increase unit-test coverage of fflib_SObject2 to 94%
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-12 10:51:54 +00:00
WimVelzeboer
92daa2e645
Add unit-test for fflib_SObject2.getStringFieldByIdField
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2022-01-12 09:21:28 +00:00
Jan Aertgeerts
bc62708b88
add getIdFieldByStringField()
2022-01-10 11:49:20 +01:00
WimVelzeboer
24ba673d8e
Add support to compare a date against a date time
2021-12-13 18:21:57 +00:00
WimVelzeboer
6ee805dfd8
Add extra unit-test coverage
2021-12-10 09:27:25 +00:00
WimVelzeboer
0d8e29d00b
Add more insight into how the fflib_Criteria formula was evaluated
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-22 21:00:11 +00:00
WimVelzeboer
1f45c8d4c2
Add setter method to fflib_SObjects2 plus unit-test
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-04 17:18:46 +00:00
WimVelzeboer
6eee1acdb6
Add getDecimalFieldSum method to domain
...
This will summarise the Decimal field value
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-03 15:24:05 +00:00
WimVelzeboer
5b486bc3a2
Delete MyTest class
...
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-11-01 13:27:35 +00:00
WimVelzeboer
ef77fad3ed
Improvements to the trigger handler
...
Ability to disable trigger action in meta-data, and adds a stateful option
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-10-28 15:35:28 +01:00
wimvelzeboer
5357cd1189
Trigger Handler functionality
...
A trigger handler based on trigger actions configured via custom metadata. It separates the trigger logic per class, and is utilizing the fflib_UnitOfWork to execute the trigger actions.
Signed-off-by: WimVelzeboer <wimvelzeboer@protonmail.com >
2021-10-27 16:04:27 +01:00
wim
c26e4d1ba8
Rename of test folder from work to unitOfWork
2021-10-15 11:01:26 +01:00