finds.dev← search

// the find

pozil/sfdc-ui-lookup-lwc

★ 612 · JavaScript · Apache-2.0 · updated Sep 2025

Salesforce Lookup Component built with Lightning Web Components.

A custom lookup/autocomplete component for Salesforce LWC that fills a real gap — Salesforce's native `lightning-record-picker` didn't ship until Winter '24, so this existed in a vacuum for years. It's for Salesforce developers who need a lookup that works across multiple object types, supports multi-select, or needs a data source that isn't strictly Salesforce records.

Client-side caching and request throttling are built into the component, not left as an exercise for the consumer. Multi-object and multi-selection support in a single component is genuinely useful and still missing from the native alternative. The test coverage is real — four separate test files covering event firing, event handling, exposed functions, and rendering. The README is unusually honest: it leads with a comparison table that actively tells you when you should use the native component instead.

No mobile support, which the README admits upfront — in a world where Salesforce Mobile is common, this is a real constraint, not a minor footnote. The data fetching contract is entirely your problem: you write the Apex, you handle caching, you handle permissions if you're on Apex (and the README warns 'use this with caution'). The `scrollAfterNItems` attribute only accepts null, 5, 7, or 10 — that kind of arbitrary constraint suggests the implementation is brittle underneath. With `lightning-record-picker` now official and multi-select on its roadmap, this component is in slow decline unless your use case specifically requires non-Salesforce data sources.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →