It’s easy in the system to get a list of dirty fields by using the PersistenceTools bean. As far as I can tell, this doesn’t work with dynamic attributes. Is there a way to easily get the changed dynamic attributes of a record? Or is this something that I will need to write myself?
Unfortunately, there is no ability to detect changes for dynamic attributes using PersistenceTools bean.
Dynamic attributes are created as CategoryAttributeValue entity, so as workaround you can try to detect changes in the entity listener for the CategoryAttributeValue entity.