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

Popoulate Salesforce Lookup Fields on a Standard Page Using URL Parameters


While navigating to a standard page from custom page - I am passing URL Parameters to fields on the Standard page.
I am using fieldID to achieve this and it works for all fields except for lookup fields. 

As mentioned in this blog, lookup field can be populated based on ID and Value.
I am passing both ID and values.

Below is the snippet of my URL value: 

For some reason, this does not populate the values in the lookup field. It should populate as "SampleProd"

Please suggest!
Best Answer chosen by ArchieTechie6
NagendraNagendra (Salesforce Developers) 
Hi Archie,

Looking at a similar URL hack in my org, everything checks out, except for one thing, a missing prefix which causes the two ids to be different:
Try changing 00Na000000ArhgS to CF00Na000000ArhgS. Should do the trick.

Hope this helps.

Kindly mark this as solved if the reply was helpful.