By setting up the Auto Tracker Lightning Component for an object, you can automatically track time on the View page of that object. But, if there are multiple records of that object open, then tracking time on each record gets confusing. Which one is tracked and which is not? Let's look at the complication and how to resolve it. Let's take the Case object as an example.

Click here to know more about enabling Auto-tracking for an object.

If auto-tracking is enabled on Cases, you can track time one or more Cases at a time, depending on how many tabs of Case Views are open. Via Config, you can ensure one of two behaviors:

  1. Every time a new record of the same object is opened, the system stops tracking the earlier record and restarts tracking on this (the new) one. The earlier record's time details are marked with the current time as its End Time. For example, if you spent 5 minutes on Case ABC, then opened Case DEF and spent 4 minutes on it, then logged out, you would see 5 minutes tracked on Case ABC and 4 minutes on Case DEF, totaling to 9 minutes of work in an elapsed time of 9 minutes. This is called the Restart option.
  2. Every time a new record of the same object is opened, the system tracks time on the new record separately, continuing tracking on the old record(s). So multiple tabs would mean multiple trackers and therefore multiple Time Detail records, all running simultaneously. Note that, in this case, the total time of all the records adds up to a lot more than the actual time the user spent. As in the previous example, if you spent 5 minutes on Case ABC, then opened Case DEF and spent 4 minutes, then logged out, you would see 9 minutes tracked on Case ABC and 4 minutes on Case DEF, totaling to 13 minutes of work in an elapsed time of 9 minutes. This is the Separate option.

To make the config changes to select either of these options:

  • In Salesforce, go to the TT Apps tab
  • Click the relevant App Name in the App Keys list view; you see the App Key details screen
  • In the "Auto Tracker on Multiple Tabs" field, select either Restart or Separate 
  • Click the Save button.



Note: The time is tracked separately even if you have set the configuration to Restart for the auto-tracking if you are tracking time on a different browser. Click here to know more

The auto tracking component can to set to any object in Salesforce. We choose Cases as an option in this article.