Skip to main content

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)

Recreating Lookup functionality in Lightning

Specifically at the top, circled in red, is the option to search ALL fields for a specific String.  Conventional SOQL queries could not accomplish this in any kind of small amount of time.  Is there any way we could bring in that default Salesforce functionality wtihout the Lookup piece? Or Is there a way to recreate that speedy search that I am overlooking?

 

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 appreciated

Colby

1 Antwort