I’m running a groovy script inside of a listener. The script I have is setting dynamic attributes. If the attributes already existed (already have values) on the entity then everything works as intended, but if a dynamic attribute is new then it doesn’t get persisted. If I create a new dynamic attribute inside of the listener but not within the script then everything gets persisted as expected.
Thoughts on how I can get around this?