• Suresh Sampath
  • NEWBIE
  • 10 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hello,

I'm trying to determine the current app in Lightning mode. I tried both Javascript and Apex, but I was unable to get to retrieve the current appname.

In classic, I used the below which worked perfect!

document.getElementById("tsidLabel").innerText

This is not working in Lightning. We need page redirection based on the current application name. We tried in Apex too with "DescribeTabSetResult". But Apex retains the last application used or being used by the user and carries it over to Lightning. It ignores the user selection in Lightning and also the current displayed app in Lightning.

Any help in this regard would be greatly appreciated!!!

Thanks!!
Hello,

I'm trying to determine the current app in Lightning mode. I tried both Javascript and Apex, but I was unable to get to retrieve the current appname.

In classic, I used the below which worked perfect!

document.getElementById("tsidLabel").innerText

This is not working in Lightning. We need page redirection based on the current application name. We tried in Apex too with "DescribeTabSetResult". But Apex retains the last application used or being used by the user and carries it over to Lightning. It ignores the user selection in Lightning and also the current displayed app in Lightning.

Any help in this regard would be greatly appreciated!!!

Thanks!!