References broken when using OldMap
Issue #642
new
When obtaining the sObject from trigger.oldMap the field references are broken.
What it should be:
When done from the old map get
The references to the sObject seem to not be found. Maybe it looses the reference to the type for the trigger?
Comments (2)
-
repo owner -
repo owner - changed version to 2.0
- Log in to comment
Yeah, this is because
oldMap
is untyped by default. I've been meaning to make it smarter when referenced in the context of a trigger itself. Unfortunately if referenced outside the context of a trigger, there's no reliable way to know the SObject for which the trigger fired. I'll keep this open to make it work better in triggers at least.