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
Gargi ManjeeGargi Manjee 

List Button with URL to populate Lookup field is not populating the lookup field.

I have created a custom list button:
User-added image
with URL :
User-added imageWhen I am clicking on New Customer, it is redicrecting to this link:
User-added image
but the lookup field is not getting populated:
User-added image

Is there anything I am doing wrong?

Thanks,
Best Answer chosen by Gargi Manjee
Neha AggrawalNeha Aggrawal
Hi Gargi,

The lookup field Id should be prefixed with CF. See this link: http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html

Hope this helps.
Thanks and Regards, 
Neha
www.initaura.com - Everything Salesforce (http://www.initaura.com)

All Answers

Neha AggrawalNeha Aggrawal
Hi Gargi,

The lookup field Id should be prefixed with CF. See this link: http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html

Hope this helps.
Thanks and Regards, 
Neha
www.initaura.com - Everything Salesforce (http://www.initaura.com)
This was selected as the best answer
Gargi ManjeeGargi Manjee
@Neha
Thanks a ton! The issue is resolved.