function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sharmila Sahu 12Sharmila Sahu 12 

lookup field is not getting populated in URL hacking in custom button in lightning.

lookup field is not getting populated in URL hacking in custom button in lightning. It is getting populated in lightning.

I have one parent object named Sample Request  and its child object Sample Product having master detail relationship.

I created one custom button with url hacking to set some fields and recordtype id for sample product creation which is  in related list of Parent object(Sample Product).

In classic parent lookup field in getting populated while clicking on related list button but it is not working in lightning. Lokkup field is empty.
I have used this code:
/a0m/e?CF00Na000000ATqLW={!Sample_Request__c.Name} 
&CF00Na000000ATqLW_lkid={!Sample_Request__c.Id} 
&RecordType="{!$Label.UsCanSampleProductRecordType}" 
&retURL=%2F{!Sample_Request__c.Id}

I need to display this button in related list.
I thought of creating lightning action but it is not getting displayed in related list section as only list buttons can be displayed in related list section.

Any help would be appreciated. 
Sharmila Sahu 12Sharmila Sahu 12
lookup field is not getting populated in URL hacking in custom button in lightning. It is getting populated in classsic**.
SEKAR RAJ.SEKAR RAJ.
System Administrator 1158System Administrator 1158
I downvoted for the stale link - This is not much better, but you can view the original content on the internet wayback machine: https://web.archive.org/web/20191207060912/https://douglascayers.com/2018/08/05/legitimate-url-hacking-in-lightning-experience/