Compare current identity attribute value with an incoming new value

Hi, I have a CSV authoritative source. For some attribute, we have “a’“, “b” or “c” as possible values. If CSV source attribute changes to “a”, identity attribtue should be “a”. If source attribute changes to “b”, identity attribute should be “b”. But, if source attribute changes to “c”, identity attribute must retain the last value (“a” or “b”).

Is there some way to achieve it?

You could us a nested Identity Attribute transform type to fetch the current identity attribute value, and then compare it in a parent static transform with velocity. You also might to be able to use the oldValue reference that is supposedly passed to the velocity context.

THanks Patrick! Following that link, I used $oldValue in static transform and worked!

2 Likes