Record Hunter is a bundle of Lighting components to searching Salesforce records with conditions, filter records by locations, and show the reult with a datatable. It is also available as a managed package on AppExchange and this is the full source code of it.
This package enables you to; Record Hunter lets you to;
- Create a search box just by specifying the target object and the fields through App Builder.
- Include fields on the parent object of the target object as a search condition.
- Search by keyword(SOSL) or/and condition(SOQL) with custom search logics(AND/OR).
- Set a fixed value as a default value, or retrieve the value from the context record and set it as default if the component is on a record detail page.
- Sort, wrap texts, and jump to the record detail with the default result table.
- Pass the search result to your custom flow and perform various actions.
Simply install the unmanaged version from here
or
git clone from this repository and deploy by yourself.
This code is only a sample code and has not been fully tested. Please use this code at your own risks. This software is released under the MIT License, see LICENSE.txt.