I have a custom object that contains a lookup field and I want to search on contact and accounts.
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.
Here's how it works:
- Anybody can ask a question
- Anybody can answer
- The best answers are voted up and rise to the top
Custom polymorphic lookups are not supported by the platform at this time. Go vote for the idea now.
Unless, of course, you have Person Accounts enabled, which lets you lookup contacts and person accounts (but not business accounts).