4

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?

2

Use queryAll in the API to retrieve the activities, then perform an update to the records. You only need to call update() using just records by Id value (you just "touch" the record). They will be restored upon saving.

The Data Loader exposes queryAll as "Export All."

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.