How do I export or delete archived activities through the API?
|Knowledge Article Number||000005388|
I would like to know how I can export archived activities for deletion through the API?
Archived activities can be exported and/or deleted through API with Data Loader. To delete an archived activity you must have their record Ids which can be obtained directly from the record, through a report, or exporting the information with the Data Loader.
In order to obtain the archived record Ids through a report you must request Increasing Archive Days for your Organization.
To create the report:
a) Click on the reports tab.
In order to obtain the activity Ids through Data Loader you will need to perform an Export All selecting to include the Id field. Please remember that with the Data Loader tasks and events are separate objects so you will need to follow the below steps for both tasks and events individually.
1. Click on the Export All button (the Export button will not work in this particular case)
2. Select Tasks or Events
3. Select the Id field and other desired fields for export and set a condition filter: IsArchived Equals TRUE
4. Click on Add Condition