You need to sign in to do that
Don't have an account?

Refresh the primary tab in service cloud console
Hi,
I am also having same problem.
i am trying to refresh my primary tab and close the subtab.
below is the code which i am trying to do.
could you please assist me on this, if you have any code samples please share with me.
How can we get the primary tab id.
function RefreshPrimaryTabByName() {
var primaryTabName = "{!Case.Contact.Name}";
sforce.console.refreshPrimaryTabByName(primaryTabName, true, refreshSuccess,closeCurrTab());
}
var refreshSuccess = function refreshSuccess(result) {
if (result.success == true) {
//alert('Primary tab refreshed successfully');
} else {
//alert('Primary tab did not refresh');
}
};
function closeCurrTab() {
sforce.console.getEnclosingTabId(closeCurrTabById);
}
var closeCurrTabById = function closeCurrTabById(result) {
sforce.console.closeTab(result.id);
};
Thank you,
Are you have any solution yet?
I can close subtab but my primaytab is not refreshing.
let me know if you have any suggestion.
Thanks,
Apple