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

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.