+ Start a Discussion
Rahul SharmaRahul Sharma 

Custom Service Console Component: Getting Primary Tab's Object Id on page reload

Hey Community,

Currently I am working on Service Console and have created a custom Visualforce component where in we are displaying some information related to the record in Primary tab.
This component is being added to the console app and is launched by a Button (which is a standard functionality).
I am able to display the record's information in the page, whenever a user switches through the primary tab (using sforce.console.onFocusedPrimaryTab method from the Salesforce Console Integration Toolkit (https://resources.docs.salesforce.com/198/latest/en-us/sfdc/pdf/api_console.pdf" target="_blank)).

When a user keeps the console components open and refreshes the page, it looses the data as I did not find any method in toolkit using which I can get the primary tab's Object Id on page load.
Is there any way to bind the page refresh or reload event with the Console component? 

Thanks for your time!