1

I am looking to add ?isdtp=mn to the end of my Log A Call button's URL so I am able to pop the page with no sidebar or header.

When I add isdtp to the end of the URL link for the Log A Call button, I get no response in Lightning. I am curious if anyone knew the "why" behind this functionality.

So my question is why can't I add isdtp=mn to the end of my Log A Call URL in a Lightning console? I am able to do so in Salesforce Clasic.

/00T/e?title=Call&who_id={!Lead.Id}&followup=1&tsk5=Call&retURL=/{!Lead.Id}?isdtp=mn

Resources:

enter image description here

enter image description here

0

1 Answer 1

1

According to screenshots you are not using Lightning console, rather using Classic Console.

In the console mode to open a window without header and side bar use srcUp(pageUrl);

The following piece of code handles both Console and Classic Mode to display the screen without sidebar and header.

{!REQUIRESCRIPT("/soap/ajax/28.0/connection.js")} 
{!REQUIRESCRIPT("/support/console/28.0/integration.js")} 

var pageUrl = '{!URLFOR($Action.Activity.LogCall)}'; 
var parameters = '?title=Call&who_id={!Lead.Id}'; 
var link = pageUrl + parameters; 
if (sforce.console.isInConsole()) 
{ 
    srcUp(pageUrl); 
} else { 
    window.open(pageUrl + '&isdtp=mn' ,'_blank'); 
}
3
  • So this actually worked without the srcUP(pageURL). I just needed to add in 'target: _blank' to the window.open - window.open(pageUrl + '&isdtp=mn', 'Window Name', 'target: _blank'); The conditional wrapped around it is a great idea, this way it can pop differently for classic or lightning.
    – Olivia
    Jul 6, 2017 at 21:03
  • Refer my blog, to know different ways of navigation: santanuboral.blogspot.com/2017/01/… Jul 6, 2017 at 21:15
  • basically srcUp and srcSelf specifically used for console, refer my blog you will get lot of examples Jul 6, 2017 at 21:19

You must log in to answer this question.

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