The Comments component can be added to any object in Salesforce. To enable this, ensure that a lookup field to the object exists in the Comments object.


Follow the steps below to implement the Comments component, I am using the Projects object as an example 


  1. Check for default lookup fields in the Comments object to see if a lookup to the desired object already exists.

  2. If the lookup field is missing, create one in the Comments object:

    • Go to SetupObject ManagerComments object.

    • Click Fields & Relationships and create a new lookup field for the desired object.


Now add the comments component to Project

  • Navigate to the Projects tab and click on an Project from the list.

  • On the Project view, click the Settings (gear) icon and select Edit Page.


  • Search for Tab in the left-hand components search box.

  • Drag and drop the Tab component to the desired location on the page (e.g., on the right-hand side marked in red in the screenshot).

  • Remove the Related tab and click on the Details tab.

  • Select Custom from the list, name the new tab as Comments, and click Done.


  • Search for timetrackerChat in the components list on the left-hand side.

  • Drag and drop the timetrackerChat component into the Comments tab area.

  • In the timetrackerChat settings, enter the API name of the lookup field in the Lookup Field API Name field.

  • Click Save to save your changes

  • Click the Activation button to activate the changes for the intended users,

  • Save the activation settings and exit the Lightning App Builder.

  • Your Comments component is now successfully added to the Project object (or any other object with similar steps). Repeat this process for other objects as needed,