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
Alfia Quadri 11Alfia Quadri 11 

url hacking not populating custom lookup field

Hello, 
I was using url hacking, created a button, all my fields are populating when the button is clicked to create a new opportunity except the custom look up field.


/lightning/o/Opportunity/new?recordTypeId=01256000003H18t&defaultFieldValues=AccountId={!Opportunity.AccountId},Parent_OpportunityId__c={!Opportunity.Parent_OpportunityId__c}

the parent opportunity field is not populating, please advice
VinayVinay (Salesforce Developers) 
Can you try adding  nooverride=true in the URL?

/lightning/o/Opportunity/new?nooverride=true&recordTypeId=01256000003H18t&defaultFieldValues=AccountId={!Opportunity.AccountId},Parent_OpportunityId__c={!Opportunity.Parent_OpportunityId__c}

https://unhandledsunshine.com/2020/02/25/spring-20-url-hack-explained/

Please mark as Best Answer if above information was helpful.

Thanks,