VisualForce Page reference id not working on Lightning
Apex , Communities , Winter 17 , Lightning
Last updated 7 days ago ·Reference W-3427000 ·Reported By 21 users
In Review
Summary
Parameters are no longer collected in lightning vf pages using the following method.
Map<String,String> params = ApexPages.currentPage().getParameters();
currentAccountId = (Id)params.get('id');
Repro
1.Created a custom Visualforce page on account
2.Include the navigation using the code above
3.Switch to lightning experience
4.Try to change the record type
5.The following error is thrown:
"List has no rows for assignment to SObject
An unexpected error has occurred. Your development organization has been notified."
Workaround
There is no workaround available.
Reported By (21)
Is it Fixed?
Any unreleased services, features, statuses, or dates referenced in this or other public statements are not currently available and may not be delivered on time or at all. Customers who purchase our services should make their purchase decisions based upon features that are currently available.