You need to sign in to do that
Don't have an account?
Ross Goldberg
Summer '17 LKID parameter no longer available in Lightning when overriding "New" button??
We have a custom Visualforce page that we use to override the "New" action on a custom object. In the page we need to reference the ID of the parent record when adding a new record from a related list. In Spring '17 we are able to access from the parameters of the current page reference. In Summer '17 in the Lightning Experience it seems this parameter is no longer passed and we cannot determine the ID of the parent record.
Is there another way to get the ID of the parent record when overriding the "New" action? FYI, we also use record types so the full list of steps to reproduce is:
ID of parent record is available via the parameter ending in _LKID
Actual result:
ID of parent record is no longer available in Summer '17
Note: In SF Classic this code still works correctly in Summer '17
Is there another way to get the ID of the parent record when overriding the "New" action? FYI, we also use record types so the full list of steps to reproduce is:
- User Navigates to a record in LEX
- User clicks the "New" button from a related list
- User selects the record type
- Visualforce page (overrides "New" button) is displayed
ID of parent record is available via the parameter ending in _LKID
Actual result:
ID of parent record is no longer available in Summer '17
Note: In SF Classic this code still works correctly in Summer '17
You should consider creating a context-aware Lightning Component using it as button. Using context-aware components you can get the current record Id. Please refer to:
https://developer.salesforce.com/blogs/developer-relations/2015/11/building-context-aware-lightning-components.html
Hope to have helped!
Regards.
Don't forget to mark your thread as 'SOLVED' with the answer that best helps you.