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
JimmyK12JimmyK12 

Custom detail page button in service console cannot refresh tab

I'm working in my full sandbox attempting to update a custom button on the opportunity object to refresh the tab when working in the service console. The code is very simple and the "isInConsole()" method works fine - meaning the integration.js script is included and working to a degree.
As soon as I attempt to use a method that uses a callback I'm getting the following error in the browser console (my org is cs9):

GET https://cs9.salesforce.com/undefined 404 (Not Found)

I can't find any solution to this - only this other post with a mention of the problem but no solution to the issue I'm having (https://success.salesforce.com/ideaView?id=08730000000kpcfAAA)

Here's the code:
{!REQUIRESCRIPT("/xdomain/xdomain.js")}
{!REQUIRESCRIPT("/support/console/25.0/integration.js")}

alert('Is in console check: ' + sforce.console.isInConsole());
var callBackFunction = function callBackFunction(result) {
var tabId = result.id;
alert('Tab id: ' + tabId);
};
sforce.console.getEnclosingTabId(callBackFunction);//WHY YOU NO WORK?!