You need to sign in to do that
Don't have an account?
Bondicloud
api console not working
<apex:includeScript value="/support/console/26.0/integration.js"/>
<A HREF="#" onClick="testIsInConsole();return false"> Click here to check if the page is in the Service Cloud console</A><br/><br/>
<script type="text/javascript">
window.onload =testIsInConsole();
function testIsInConsole() {
if (sforce.console.isInConsole()) {
alert("in console");
} else {
alert("not in console");
}
}
when i ececute this code it is giving as "not in console" eventhough i am in service console why?
pls help in this
All Answers
Do you have Service cloud License?