we are having JavaScript Button in salesforce classic that contains functionality of


and also using this functionality to open funtion in sub tab

sforce.console.getEnclosingPrimaryTabId(function (result) {

But now we are migrating to lightning. how to achieve this type of functionality in lightning Component, is there any work around process

  • I think it is not possible. I suggest you to use lightning quickAction check this post webkul.com/blog/…
    – Ratan Paul
    Commented Jun 9, 2017 at 7:46

1 Answer 1


There is a Lightning Console JavaScript API for Lightning Experience in Pilot right now, I think it will be the way to go once it's GA.

You must log in to answer this question.

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