Introduction

<aside> 💡 This recipe is not included in the Official repo. I built it because, using the first recipe provided, it might be confusing when starting with lightning-record-picker.

</aside>

The main concept included in this recipe is using the lightning-record-picker LWC, appeared in GA in Spring ‘24.

This new LWC component, allows searching for records in a very flexible and powerful way:

<aside> 📂 You can find the LWC in this folder: force-app\\main\\default\\lwc\\recordPickerHello in the Record Picker tab.

</aside>

<aside> 💡 If you are not familiar with this recently LWC component, visit: https://developer.salesforce.com/blogs/2023/10/introducing-the-lightning-record-picker-component and https://developer.salesforce.com/docs/component-library/bundle/lightning-record-picker/documentation.

</aside>

Template file

The template file includes the new lightning-record-picker.

In the following code, I have expanded the code to include display-infoand filter which are important capabilities that are not included in the recipe.

This LWC is used for: