+ Start a Discussion
Ross GoldbergRoss 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:
  1. User Navigates to a record in LEX
  2. User clicks the "New" button from a related list
  3. User selects the record type
  4. Visualforce page (overrides "New" button) is displayed
Expected behavior:

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



 
Best Answer chosen by Ross Goldberg
Zuinglio Lopes Ribeiro JúniorZuinglio Lopes Ribeiro Júnior
Hello Ross,

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.