Why is the Lightning console method workspaceAPI.closeTab() not working after keeping it open for 2 hours?

212    Asked by DianaCampbell in Salesforce , Asked on Aug 28, 2023

 If we try to close the console tab after leaving it idle for approximately 2 hours, it doesn’t close. It will only close if the user launches the page and Cancels immediately. Why is this so?

Answered by Elizabeth Jordan

Add a console.log in the catch function to log any issues regarding the Closetab.



Your Answer

Interviews

Parent Categories