0

I am having an issue while calling sforce.one.navigateToSObject('...') method from Visualforce. It redirects me to records with given ID but it shows classical UI inside of iframe that the visualforce page was displayed, instead of what I expect - display record detail page in LEX.

To explain why I expect this behavior - all other functions that can be called on sforce.one object in JavaScript are interacting with Lightning Experience.

Example: sforce.one.navigateToObjectHome('Account'); displays list of Accounts in new Lightning Experience interface.

Is it expected behavior? If Yes, how can I navigate from Visualforce page to record in Lightning Experience?

1 Answer 1

1

Had the problem, posted it on stackexchange, had an answer :)

force:navigateToSObject not working when called from a vf page including a ltng:outApp component

2
  • Thanks for this. I hoped for a cleaner solution but this will make it :) Feb 2, 2017 at 8:57
  • I would have liked that too but ... SFDC is SFDC :D Feb 7, 2017 at 18:15

You must log in to answer this question.

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