You need to sign in to do that
Don't have an account?
pranaya bhoyar
List view button to open vf page in primary tab of service console
Hello Everyone,
I want to open the vf page in a primary tab when Case list view button is clicked but the Case list view should not change. This should work for lightning experience so I can't use JS button to do this.
I tried of implementing this by creating two vf pages. One vf page i.e. page1 which is used on list view button. On click of button, it is opening second vf page in a primary tab. By doing this I am able to load page-2 in primary tab but Not getting an idea of how to stay on standard case list view in same tab instead of opening page-1.
List view button page code sampe-
//******* Even if this page opens it should get back to the case list view.
Please suggest.
I want to open the vf page in a primary tab when Case list view button is clicked but the Case list view should not change. This should work for lightning experience so I can't use JS button to do this.
I tried of implementing this by creating two vf pages. One vf page i.e. page1 which is used on list view button. On click of button, it is opening second vf page in a primary tab. By doing this I am able to load page-2 in primary tab but Not getting an idea of how to stay on standard case list view in same tab instead of opening page-1.
List view button page code sampe-
//******* Even if this page opens it should get back to the case list view.
<apex:page standardController="Case" extensions="sc_RedispatchCaseController" recordSetVar="cases"> <apex:includeScript value="/support/console/49.0/integration.js"/> <script type="text/javascript"> if(sforce.console.isInConsole()){ sforce.console.openPrimaryTab(null, <URL>, true); } </script> </apex:page>
Please suggest.
Greetings!
Can you please find the sample code to open the VF page in the primary tab in Service console:
https://developer.salesforce.com/forums/?id=9060G000000UapzQAC
Kindly let me know if it helps you and close your query by marking it as best answer so that it can help others in the future.
Warm Regards,
Shirisha Pathuri