I have a Detail Page Button with a URL.

It resides on the Case object and creates a custom object record. On the custom object, there is a lookup to the case object. I would like the CaseNumber to populate on the new record upon save.

Here is the URL:


How do I amend the URL so the CaseNumber populates the field on the new record?

Thank you.

  • so you are basically looking prepopulating the value of Case__c (the lookup field) on the custom object? Is this Classic?
    – cropredy
    Commented Apr 12, 2023 at 0:09
  • Yes. I need to populate the Request__c (a lookup to the case object) with the CaseNumber value. And, yes, for now, they are still refusing to move from classic. They despise Lightning.
    – Debbie
    Commented Apr 12, 2023 at 10:50
  • this covers how to do Classic URL hacking: focusonforce.com/configuration/salesforce-url-hacking
    – cropredy
    Commented Apr 12, 2023 at 16:15


You must log in to answer this question.

Browse other questions tagged .