References broken when using OldMap

Issue #642 new
Eric Alexander created an issue

When obtaining the sObject from trigger.oldMap the field references are broken.

What it should be:

Screen Shot 2017-06-29 at 12.46.08 PM.png

When done from the old map get

Screen Shot 2017-06-29 at 12.47.01 PM.png

The references to the sObject seem to not be found. Maybe it looses the reference to the type for the trigger?

Comments (2)

  1. Scott Wells repo owner

    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.

  2. Log in to comment