fflib-apex-common
fflib-apex-common copied to clipboard
IDGenerator fails with History Objects
fflib_IDGenerator.generate(CaseHistory.SObjectType)
results in :
System.StringException: Invalid id: null000000000001 Class.UP2GO_2T.fflib_IDGenerator.generate: line 41, column 1
Same for Custom__History objects.
Bah.... not really sure what we can do about this tbh, feels like a platform issue. @capeterson any thoughts?
the bigger issue is that xxxHistory objects can't be mocked, even using json.deserialize technique