* Override getRecordsWithNotBlankFieldValues in fflib_SObjects2
The base fflib_SObjects implementation casts every value to String, which
throws a TypeException on Date/Datetime/Number/Lookup fields. This override
generalises the check to "any non-null value, and for Strings also non-blank"
so the helper works for every field type.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* Update fflib_SObjects2.cls
Rename method to getRecordsWithNonBlankFieldValues
* Update fflib_SObjects2Test.cls
Rename method to getRecordsWithNonBlankFieldValues
* Update fflib_SObjects2.cls
Rename variable
Co-authored-by: Robin Weymans <robin.weymans@mylighthouse.com>
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: William Velzeboer <6429417+wimvelzeboer@users.noreply.github.com>
* Add overloads for decimal values in getRecords and getRecordsNotIn
* updated readme file
* Add compatibility for multiselect picklists for the `getRecords` method
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>