Friday 5 October 2012

Custom Links and Buttons in Service Console (Salesforce)

We faced one challenge while creating Custom Links through Formula field using Hyperlink Function which should work inside Service Console (Behavior of Custom Links : Open in a new sub-tab window inside sales force application)

We got a solution after soo many work arounds :


HYPERLINK("javascript:if(typeof(srcUp)=='function') {srcUp('/URLDomainName?isdtp=vw'); } "+
"else {window.open='/URLDomainName?isdtp=vw'}","salesforceTab", "_parent")

you can use any url path/Apex Page inside srcUp function.

Above formula logic will open the Custom Links in a new sub-tab window inside the service Console and outside service console it will open in a new tab/window.

I have Posted this things in the below Community:
http://boards.developerforce.com/t5/Formulas-Validation-Rules/Hyperlink-in-Service-Cloud-Console-not-open-new-tab-or-subtab/td-p/309735

Additional Links which will help you in understanding :

http://success.salesforce.com/ideaView?id=08730000000YKxYAAW


Hope this post helps....:

4 comments:

  1. Hi Bijay. This was helpful. i have the formula filed and link works perfectly from the Detail record. however, when I use the same formula field in an email template, it does not show up as a link. Could you help me with this? I am trying to replace the sObject.Link with this formula field to make sure that when the records open within the open Service console browser window and not create a new browser tab.

    ReplyDelete
  2. I start with set of questions I want to run through some of the definitions for Salesforce CRM Customization

    ReplyDelete
  3. Hi Bijay,

    JavaScript Hyperlink Formula is getting deprecated by the end of this month.

    Will this work after that.

    What is the workaround you might say should be to get the same output without having to use a VF page.

    Please suggest.

    ReplyDelete
  4. Salesforce CRM makes syncing data between Different cloud App as a piece of cake.

    Salesforce Integration

    ReplyDelete