var refreshSubtab = function refreshSubtab(result) {
var tabId = result.id;
sforce.console.refreshPrimaryTabById(tabId, true);
}
I am using above code to refresh the tab by its id. When loading this page in salesforce console, it refreshes the whole page.
When move to lightning, it does not refresh at all. sforce
is not defined in lightning.
Is there anything I am missing?