Recently I came across a script to open a visualforce page in Salesforce Console and found the use of function srcUP(). Could you please let me know what exaclty does this function do and is a part of which library.


2 Answers 2


Yes SrcUp can be used to open subtabs in service cloud console.

here is an example of JS in button to open a VF page in console.

if(typeof(srcUp) == 'function') //Checks that it is in console
var openSubtab = function(result){ 
sforce.console.openSubtab(result.id,'/apex/YourVFPageName?caseID={!Case.Id}&inConsole=true', true, 'Subtab Name', null); 


This Button code will handle opening of VF page in console and outside console very effectively.


srcUp is a method that allows you to open new subtabs when in the Salesforce.com domain, like “na1.salesforce.com”. Visualforce pages are served from the Visualforce domain, like “c.visual.force.com”. Visualforce pages don’t have access to the srcUp method, and hence need the Service Cloud Integration Toolkit methods to open new subtabs/ primary tabs.

Source - https://success.salesforce.com/ideaView?id=08730000000YKxYAAW

As per this SFSE link the following scripts are required.


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .