I have created a URL hacking to populate contract agreement name and account name(through contract agreement) on contract product. For some reasons account name field is showing an error 'Error: Multiple items found. Select from drop-down or click icon to refine search' and is also pulling wrong account name.

Relationship Account is parent to Contract Agreement(Lookup relationship) and contract agreement is parent to contract product(Lookup relationship)

URL hack formula


enter image description here

  • aren't you missing the CF part of the keyprefix on line 4?
    – cropredy
    Feb 2, 2021 at 0:47
  • You don't need to escape the name values? Feb 2, 2021 at 4:01
  • Thanks @cropredy. Adding CF worked. What a rookie mistake
    – Jatin
    Feb 2, 2021 at 6:45
  • @CharlesKoppelman why do we need to escape the name values ?
    – Jatin
    Feb 2, 2021 at 6:46

1 Answer 1


If you look at line 4 of your URL


you'll see that the ID is not correct as the custom object Contract_Agreement__c appears (based on your other lines) to use a keyprefix of CF0.

A URL hack that references input fields on the page with invalid Ids simply ignores the URL parameter.

Remember that if you are developing in a sandbox and the fields being referenced in the URL Hack do not yet exist in PROD, the URL will need to be manually edited after deployment as the sandbox field Ids won;t match the PROD field Ids.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .