You need to sign in to do that
Don't have an account?
SFDC Forum 9
sforce.console.getEnclosingPrimaryTabId() returning undefined in lightning
sforce.console.getEnclosingPrimaryTabId(closeTab);
var closeTab= function closeTab(result){
var a=result.id;
console.log(a) ;
// in console, i get expected value in classic app
// same code gives null value in lightning
}
I understood somewhat from blogs that this does not support in lightning, am i correct.If yes, can you help me with alternative
I got to migrate the vf page, it has aroung 2-3k lines of code.
Only these liness are not supportable in lightning, so definitely, its difficult create lightning component, please assist.
var closeTab= function closeTab(result){
var a=result.id;
console.log(a) ;
// in console, i get expected value in classic app
// same code gives null value in lightning
}
I understood somewhat from blogs that this does not support in lightning, am i correct.If yes, can you help me with alternative
I got to migrate the vf page, it has aroung 2-3k lines of code.
Only these liness are not supportable in lightning, so definitely, its difficult create lightning component, please assist.
getEnclosingPrimaryTabId() is not available for lightning experience. You can try using getEnclosingTabId() for Lightning Experience instead
Anudeep