• Gen Esys
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies
I'm trying to have our console app work in both SFDC Classic and Lightning (it's a requirement).

I'm trying to close a VisualForce page via some JavaScript code. With Classic Console I did the following:

sforce.console.closeTab(id, callback);

There's some equivalent in Lightning here: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_closeTab.htm

But this is called from within a Lightning component. How do I do it from a VisualForce page?

There are also lots of other methods I'd like to use, but I can't see to get the 'hook' that I need.
I'm trying to have our console app work in both SFDC Classic and Lightning (it's a requirement).

I'm trying to close a VisualForce page via some JavaScript code. With Classic Console I did the following:

sforce.console.closeTab(id, callback);

There's some equivalent in Lightning here: https://developer.salesforce.com/docs/atlas.en-us.api_console.meta/api_console/sforce_api_console_lightning_closeTab.htm

But this is called from within a Lightning component. How do I do it from a VisualForce page?

There are also lots of other methods I'd like to use, but I can't see to get the 'hook' that I need.