I am facing one issue while publishing and unpublishing of assets into Brand Portal (AEM 6.5.11). When I publish assets to Brand Portal, it sets a property dam:portalReplicationAction to Activate as well sets cq:lastReplicationAction to Activate. Similarly, when I click Unpublish from Brand Portal in AEM, it sets dam:portalReplicationAction to Deactivate as well sets cq:lastReplicationAction to Deactivate. This is same behaviour on the vanilla instance as well.


Due to change of cq:lastReplicationAction, it causes an issue for us as it calls our custom Event Handler.
Is there an OOTB way that can stop this property cq:lastReplicationAction from being affected? Or do we need to write some custom solution for this?
Anyway, I am going to raise an Adobe ticket for this but if someone has faced this issue before, could you please share your experience?