Hi,
I have a requirement, where after updating the status of the record from open to complete, modified on date should be same as before the status update . We tried it using the plugin at the pre Operation stage and registered Pre-image to get the modified on date before status update. The date we got from preimage has been set to the modifiedon date to the target entity form the plugin context.
modified on date is not updating with the modified on date that obtained from the preimage, where it is updating with the current date&time when status is updated. When I debugged the code it's showing that preimage modifiedon date is getting passed to the "activity["modifiedon"]".we have checked with the other plugin if any plugin is getting triggered after status updated, there are no plugins or other activities are getting triggered or updating the entity as we checked in the audit history. In audit history it's showing status update information and no other field is getting updated after status update.
Overwriting modifiedon date is working and reflecting for other fields update except status update.
Can one help me regarding this issue, why overriding modifiedon on status change is not working?