Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

< Return to the Knowledge Base Home Page

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 Stop Watch 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 Stop Watch.

  • No labels