Saturday 26 July 2014

Set Console Tab title using "Salesforce Console Integration Toolkit"

Hi,

I have the requirement to have a visualforce page in the console view. But when we open a visualforce page from a button or something in the console view then console set the title for console tab as "ExternalPage".
But we want to change that title.

We can change the title of Console tab when we open "visualforce pages or third party applications" by using "Salesforce Console Integration Toolkit"

To use this in the visualforce page we should include the following script file.

<apex:includeScript value="/support/console/20.0/integration.js"/>

Eg:
==
<apex:page>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<apex:includeScript value="/support/console/20.0/integration.js"/>
<script>
 $(document).ready(function() {

      sforce.console.setTabTitle('My Title for Console Tab');
 });
</script>
</apex:page>

when we open this page then title "My Title for Console Tab" for Console Tab where visualforce page opened in console view.

Not only these we can customize more things in Console by using this Tool Kit.

For more information "Salesforce Console Integration Toolkit".

No comments:

Post a Comment

How to include a screen flow in a Lightning Web Component

 Hi, Assume  you have a flow called "Quick Contact Creation" and API Name for the same is "Quick_Contact_Creation". To i...