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
Naresh Kumar Mittapally 5Naresh Kumar Mittapally 5 

url hacking in lightning


Does URL hacking works with custom fields on Case or is there any limitations?
I have been working on it, but running into issues, 

USECASE:
I need to pre-populate child case fields from parent case and select record type,
/lightning/o/Case/new?useRecordTypeCheck=1&defaultFieldValues=
CaseNumber={!Case.CaseNumber},
ParentId={!Case.ParentId},
abc_first_name={!Case.parent_First_Name__c} 

abc_first_name= first name on child case
parent_First_Name__c = first name of paren case

any help is greatly appreciated
ShirishaShirisha (Salesforce Developers) 
Hi Naresh,

Greetings!

I don't think there is any limitation when it comes to the standard or custom fields.So,I would suggest yout to double check the API names when you pass it to the URL.

Reference:https://www.salesforceben.com/salesforce-url-hacking-for-lightning-tutorial/

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri
Naresh Kumar Mittapally 5Naresh Kumar Mittapally 5
Hi Sirisha,
I tried that link, when I used useRecordTypeCheck=1 , i can see fields that I used in URL button as parameters on record type selection page, when I click next, the URL is no more holding the parameters and not pre-populating the fieldsUser-added image