Similar to Lightning Component Library’s Lightning:input component, this is also a very much needed component sfor any developer building forms in salesforce lightning, to lookup for records from various objects.
- From another parent custom component
- In Flow Builder as a custom input field
<c:inputLookup LookupLabel="Customer"
LookupIcon="standard:account"
LookupObject="Account"
LookupField_1="Name"
LookupField_2="Type"
LookupField_3="AccountNumber"
LookupAdditionalClause=" and AccountNumber like 'CD%'"
LookupSelectedRecord="{!v.selectedCustomer}"
LookupSelectedRecordId="{!v.selectedCustomerId}"
LookupRowLimit="6"
withSharing="true" />
https://login.salesforce.com/packaging/installPackage.apexp?p0=04t3V000000UiLm