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

Lookup to show all accounts

I have a contact with a lookup to an account - when the user selects the lookup, I need him to be able to see all accounts - not just recent or those beginning with a certain letter.


Is there any way to do this?


The plan is to then use the enhanced lookup filter to allow him to filter on the town and city fields.





 If you want to show all accounts you can use lookup filter functionality on contact field account on the basis of condition you will provide to it. You can show all accounts on the basis of record type as well.



Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 



no, I am still only seeing recently viewed records.

I want the lookup to show all records





That's the way standard lookup works..:(


It displays recently viewed records.


But you can improve search results using wild card characters.


Here is the documentation for improving search results,



Promote the idea for "

Show all records in lookup search",


To display All records, you can create Custom Lookup functionality on VF page,


Please refer the below link, This is an excellent blog from Bob Buzzard on this.


Hope this helps.