fflib-apex-common icon indicating copy to clipboard operation
fflib-apex-common copied to clipboard

IDGenerator fails with History Objects

Open itsmebasti opened this issue 7 years ago • 2 comments

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.

itsmebasti avatar Mar 07 '17 17:03 itsmebasti

Bah.... not really sure what we can do about this tbh, feels like a platform issue. @capeterson any thoughts?

afawcett avatar Mar 08 '17 23:03 afawcett

the bigger issue is that xxxHistory objects can't be mocked, even using json.deserialize technique

cropredyHelix avatar Feb 12 '19 01:02 cropredyHelix