Last active
January 3, 2016 12:49
-
-
Save mtetlow/8465527 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Setup -> Customize -> Chatter -> Feed tracking | |
//Enable feed tracking on TaskRay History, TaskRay Project Notification, TaskRay Task Notification, and TaskRay View Project objects | |
List<TASKRAY__trHistory__Feed> historyFeed = [SELECT Id FROM TASKRAY__trHistory__Feed]; | |
delete historyFeed; | |
List<TASKRAY__trTaskNotification__Feed> taskNotificationFeed = [SELECT Id FROM TASKRAY__trTaskNotification__Feed]; | |
delete taskNotificationFeed; | |
List<TASKRAY__trProjectNotification__Feed> projectNotificationFeed = [SELECT Id FROM TASKRAY__trProjectNotification__Feed]; | |
delete projectNotificationFeed; | |
List<TASKRAY__ViewProjectTasks__Feed> taskViewFeed = [SELECT Id FROM TASKRAY__ViewProjectTasks__Feed]; | |
delete taskViewFeed; | |
//Can reuse for other backend taskray objects. | |
//Be wary of deleting feeds on objects that matter, like TASKRAY__Project_Task__c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment