How to Mass Update Active Time Tracking Summaries

Issue: Is the stopwatch running slow, or do you have a large number of active time-tracking summaries?

 

Solution: Use the developer console to execute anonymous to mass update the active time tracking summaries in a subscriber's org from Active = True(checked) or Active = False (false).

This will remove Active Time Trackings from the Stopwatch feature.

Note: this will make all Time Tracking Summaries in your entire Salesforce org not active. User impact = all.

Step 1:
Click on the gear icon > Developer Console.

Step 2:
Click Debug > Open Execute Anonymous Window

Step 3:
Copy and paste the code found below and click Execute.

List<TTracking__Time_Tracking_Summary__c> tts = [Select Id From TTracking__Time_Tracking_Summary__c Where TTracking__Active__c <> false]; for (TTracking__Time_Tracking_Summary__c t : tts) { t.TTracking__Active__c = false; } update tts;

You should now see that there are no Active time tracking summaries in the Stopwatch.

Time Tracking is built by Fostering and powered by Salesforce.