Can we use a visualforce page as a tab in service condole? If it is possible can you please explain the steps as well?

Thanks in advance


If I am understanding the question correctly. I think it is possible through Salesforce console integration toolkit.

Here http://www.salesforce.com/us/developer/docs/api_console/index_Left.htm#CSHID=sforce_api_console_sample_vf.htm|StartTopic=Content%2Fsforce_api_console_sample_vf.htm|SkinName=webhelp

Example is given to use visualforce page as tab and performing various operations on it.

Sample page copied from Salesforce console Integration toolkit guide

<apex:page standardController="Case">

   <apex:includeScript value="/support/console/20.0/integration.js"/>
   <script type="text/javascript">
        function openPrimaryTab() {
               'http://www.salesforce.com', true, 'salesforce');

        //The callback function that openSubtab will call once it's got the ID for its primary tab
        var callOpenSubtab=function callOpenSubtab(result) {
               'http://www.yahoo.com', true, 'yahoo');

        function openSubtab() {

        //Sets the title of the current tab to "SFDC"
        function setTitle() {

        //The callback function that closeTab will call once it's got the ID for its tab
        var callCloseTab= function callCloseTab(result) {

        function closeTab() {

   <A HREF="#" onClick="openPrimaryTab();return false">Open A Primary Tab</A> 
   <p/><A HREF="#" onClick="openSubtab();return false">Open A Subtab</A> 
   <p/><A HREF="#" onClick="setTitle();return false">Set Title to SFDC</A> 
   <p/><A HREF="#" onClick="closeTab();return false">Close This Tab</A> 

  • does not work, it does not do anything get this error Uncaught ReferenceError: openSubtab is not defined
    – Nick Kahn
    Mar 16 '16 at 20:27
  • Did you add: <apex:includeScript value="/support/console/20.0/integration.js"/>? @NickKahn. It is a working example from official Salesforce documentation.
    – Ashwani
    Mar 17 '16 at 4:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.