
I know this has been posted several times, but I am not looking to recreate the UI, that I can handle. There are two specific pieces of functionality I was looking for direction in recreating. What we want to do is search for Accounts and view accounts the same way the Lookup does in the Lookup window. First here is the Lookup window that comes from a Lookup(Account)
Second is the recently viewed Agencies. Since we are coding the search functionality we were unsure if this would even work with our search but it does seem to pick up what we have viewed, regardless of wether or not we viewed it through the Lookup. How are these Accounts tagged in such a way that the most recently viewed ones can be listed? Is there a hidden field or other attribute/property here that has a list we can pull from? Or is this something that we can pull in this whole table?
I think this post will greatly help everyone who is currently having to manually recreate these lookups in lightning, as evidenced by the multiple UI templates for the Lookups that exist online, but none give a good way to solve for this missing functionality. Any and all direction would be greatly appreciatedColby
You will have to use SOSL instead of soql .I have used enrico's lookup https://developer.salesforce.com/blogs/developer-relations/2015/06/salesforce-lightning-inputlookup-missing-component.html to replicate lookup. U can analyze the controller code to replicate standard lookup fields.