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
divya gorantladivya gorantla 

Can any one help me how to open a vfpage in existing case tab in salesforce console

I Tried with the following code .But the page is opening in new tab

<apex:page standardController="Case" extensions="GEHCIT_Case_Buttons">
<apex:pageMessages id="msgs"/>
 <apex:includeScript value="/soap/ajax/26.0/connection.js"/>
<apex:includeScript value="/support/console/25.0/integration.js"/>

        function testOpenSubtab(url2) {
            //First find the ID of the primary tab to put the new subtab in
            var PBID=sforce.console.getEnclosingPrimaryTabId();

            sforce.console.focusSubtabByNameAndPrimaryTabName('00006487','Test Account');
            var SBId=null;
              var SBId=sforce.console.getFocusedSubtabId();
            var id='{!id}';
                       var url=url2+id;
            sforce.console.getEnclosingPrimaryTabId(function openSubtab(result){
            var primaryTabId = result.id;
         sforce.console.openSubtab(primaryTabId ,url ,true,'Email',SBId);
        });
             
        }

<apex:form>
<apex:commandButton onClick="testOpenSubtab('/apex/GE_HCIT_Send_Email?id=');return false" value="SendEmail" rendered="{!Case.SVMXC__Is_Entitlement_Performed__c=true}" />
</apex:form>
</apex:page>