function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Vignesh M 9Vignesh M 9 

How to Refresh Primary Tab in Lighting Console ?

I am trying to refresh the primary tab from my lightning component in the lightning service console.
Tried these codes.
Not working.
Code:
var eventHandler = function eventHandler(result) {
            alert('Enclosing tab has refreshed:' + result.id
          + 'and the object Id is:' + result.objectId);
        };
            sforce.console.onEnclosingTabRefresh(eventHandler);

Please Help.