There is a standard behavior of the platform to archive activities if certain conditions are met
- Events due more than 365 days ago
- Closed tasks due more than 365 days ago
- Closed tasks created more than 365 days ago, if they have no due date
As stated here
https://help.salesforce.com/HTViewSolution?id=000175889
the 365 can be increased up to 2555 days. Fine. Now here
https://success.salesforce.com/ideaView?id=08730000000Bp5H
I found that increasing this limit won't unarchieve activities which are already archived even if they are below the increased threshold. Also it's not possible to write this flag explicitly.
What is the best way to unarchieve those tasks according to the new threshold?