{"id":439,"date":"2025-02-20T18:53:03","date_gmt":"2025-02-20T18:53:03","guid":{"rendered":"https:\/\/www.irfankhatri.com\/blog\/?p=439"},"modified":"2025-02-25T18:16:58","modified_gmt":"2025-02-25T18:16:58","slug":"salesforce-lightning-record-picker-your-complete-guide","status":"publish","type":"post","link":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/","title":{"rendered":"Salesforce Lightning Record Picker: Your Complete Guide"},"content":{"rendered":"\n<p>The Salesforce Lightning Record Picker is an essential UI component in Salesforce that allows users to search for and select records from Salesforce objects in a simplified and intuitive manner. This component is part of Salesforce Lightning Web Components (LWC), providing a native and streamlined approach for users to pick records, making it ideal for a variety of use cases such as forms, record selection, and more.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Key Features of Lightning Record Picker<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>User-Friendly Search Interface<\/strong>: It offers an autocomplete search bar for the user to easily search and select records.<\/li>\n\n\n\n<li><strong>GraphQL Wire Adapter<\/strong>: The component uses\u00a0<a href=\"https:\/\/developer.salesforce.com\/docs\/platform\/lwc\/guide\/reference-graphql.html\" target=\"_blank\" rel=\"noreferrer noopener\">GraphQL wire adapter<\/a>\u00a0to search for records to support offline use.<\/li>\n\n\n\n<li><strong>Display Fields<\/strong>: At first, only the Name field is visible, but incorporating a secondary field improves the user experience by making it easier to find the right record.<\/li>\n\n\n\n<li><strong>Filter Criteria<\/strong>: The Record Picker allows filtering of records by a variety of criteria (e.g., specific field values), helping users narrow down their search results.<\/li>\n\n\n\n<li><strong>Matching Fields<\/strong>: By default, the search is performed on the name field of the target object. To search for a match in a different field or multiple fields, use the matching-info attribute.<\/li>\n\n\n\n<li><strong>Validation Messages<\/strong>: Validation messages are displayed when the component loses focus or via the reportValidity() method. Custom validation messages can also be defined using setCustomValidity().<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Using the Lightning Record Picker in a Contact Example<\/h2>\n\n\n\n<p>The following example demonstrates how to use the lightning-record-picker in a LWC to let users select a Contact record.<\/p>\n\n\n\n<p>contactRecordPicker.html<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n    &lt;lightning-card title=\"Select a Contact\"&gt;\n       &lt;div class=\"slds-p-around_medium\"&gt;\n            &lt;lightning-record-picker label=\"Select a Contact\"\n                              object-api-name=\"Contact\"\n                              value={selectedContactId}\n                              placeholder=\"Search Contacts...\"\n                              icon-name=\"standard:contact\"\n                              variant=\"label-hidden\"\n                              size=\"large\"\n                              onchange={handleRecordChange}&gt;\n            &lt;\/lightning-record-picker&gt;\n        \n    &lt;\/div&gt;\n    &lt;template if:true={selectedContactId}&gt;\n        &lt;div class=\"slds-p-around_medium\"&gt;\n            &lt;p&gt;Selected Contact ID: {selectedContactId}&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/template&gt;\n    &lt;\/lightning-card&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>contactRecordPicker.js<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, track } from 'lwc';\n\nexport default class ContactRecordPicker extends LightningElement {\n    @track selectedContactId;\n\n    handleRecordChange(event) {\n        this.selectedContactId = event.detail.recordId;\n    }\n}<\/code><\/pre>\n\n\n\n<p>contactRecordPicker.js-meta.xml<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;?xml version=\"1.0\"?&gt;\n&lt;LightningComponentBundle xmlns=\"http:\/\/soap.sforce.com\/2006\/04\/metadata\"&gt;\n\t&lt;apiVersion&gt;62.0&lt;\/apiVersion&gt;\n\t&lt;isExposed&gt;true&lt;\/isExposed&gt;\n\t&lt;targets&gt;\n       &lt;target&gt;lightning__AppPage&lt;\/target&gt;\n       &lt;target&gt;lightning__RecordPage&lt;\/target&gt;\n       &lt;target&gt;lightning__HomePage&lt;\/target&gt;\n   &lt;\/targets&gt;\n&lt;\/LightningComponentBundle&gt;<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"168\" src=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-1.png\" alt=\"Lightning Record Picker\" class=\"wp-image-442\" style=\"width:550px;height:auto\" srcset=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-1.png 622w, https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-1-300x81.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"563\" height=\"273\" src=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-2.png\" alt=\"Select Contact\" class=\"wp-image-444\" style=\"width:550px;height:auto\" srcset=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-2.png 563w, https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-2-300x145.png 300w\" sizes=\"auto, (max-width: 563px) 100vw, 563px\" \/><\/figure>\n<\/div>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"620\" height=\"252\" src=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-3.png\" alt=\"Select Contact\" class=\"wp-image-445\" style=\"width:546px;height:auto\" srcset=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-3.png 620w, https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-3-300x122.png 300w\" sizes=\"auto, (max-width: 620px) 100vw, 620px\" \/><\/figure>\n<\/div>\n\n\n<p>The lightning-record-picker component automatically displays a search bar, allowing users to search for Contact records.<\/p>\n\n\n\n<p>When a user selects a contact, the onrecordchange event triggers the handleRecordChange method, which retrieves the selected record\u2019s ID and displays it on the page.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Advanced Usage with Matching-info, Display-info, and Filters<\/h2>\n\n\n\n<p>In addition to the basic functionality, Salesforce provides enhanced features like matching-info, display-info, and filtering, which allow for a more tailored user experience.<\/p>\n\n\n\n<p>contactRecordPicker.html<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n    &lt;lightning-card title=\"Select a Contact\"&gt;\n       &lt;div class=\"slds-p-around_medium\"&gt;\n            &lt;lightning-record-picker label=\"Select a Contact\"\n                              object-api-name=\"Contact\"\n                              value={selectedContactId}\n                              placeholder=\"Search Contacts...\"\n                              icon-name=\"standard:contact\"\n                              variant=\"label-hidden\"\n                              size=\"large\"\n                              matching-info={matchingInfo}\n                              display-info={displayInfo}\n                              filter={filterCriteria}\n                              onchange={handleRecordChange}&gt;\n            &lt;\/lightning-record-picker&gt;\n        \n    &lt;\/div&gt;\n    &lt;template if:true={selectedContactId}&gt;\n        &lt;div class=\"slds-p-around_medium\"&gt;\n            &lt;p&gt;Selected Contact ID: {selectedContactId}&lt;\/p&gt;\n        &lt;\/div&gt;\n    &lt;\/template&gt;\n    &lt;\/lightning-card&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>contactRecordPicker.js<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, track } from 'lwc';\n\nexport default class ContactRecordPicker extends LightningElement {\n    @track selectedContactId;\n\n    handleRecordChange(event) {\n        this.selectedContactId = event.detail.recordId;\n    }\n\n    matchingInfo = {\n        primaryField: { fieldPath: 'Name', mode: 'startsWith' },\n        additionalFields: &#91;{ fieldPath: 'Phone' }],\n    };\n\n    displayInfo = {\n        primaryField: 'Name',\n        additionalFields: &#91;'Email'],\n    };\n\n    filter = {\n        criteria: &#91;\n            {\n                fieldPath: 'LeadSource',\n                operator: 'eq',\n                value: 'Web'\n            },\n            {\n                fieldPath: 'Department',\n                operator: 'ne',\n                value: 'Administration'\n            }\n        ],\n        filterLogic: '(1 OR 2)',\n    };\n}<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"622\" height=\"287\" src=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-4.png\" alt=\"Select Contact\" class=\"wp-image-448\" style=\"width:514px;height:auto\" srcset=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-4.png 622w, https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-4-300x138.png 300w\" sizes=\"auto, (max-width: 622px) 100vw, 622px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Using Lightning Record Picker in a Loop<\/h2>\n\n\n\n<p>In some cases, you might want to render multiple Record Picker components, such as when displaying a list of items that require users to select related records. You can dynamically create these components using a loop.<\/p>\n\n\n\n<p>multiProductRecordPicker.html<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;template&gt;\n    &lt;lightning-card title=\"Select Products\"&gt;\n       &lt;div class=\"slds-p-around_medium\"&gt;\n        &lt;template for:each={productList} for:item=\"product\" for:index=\"index\"&gt;\n            &lt;div key={product.lineNumber} class=\"slds-grid slds-wrap slds-m-bottom_small\"&gt;\n                &lt;div class=\"slds-col slds-size_1-of-1\"&gt;\n                &lt;lightning-record-picker label=\"Product\"\n                                    placeholder=\"Search Product...\"\n                                    object-api-name=\"Product2\"\n                                    variant=\"label-hidden\"\n                                    value={product.productId}\n                                    onchange={handleProductChange}\n                                    data-index={index}&gt;\n                &lt;\/lightning-record-picker&gt;\n                &lt;\/div&gt;\n            &lt;\/div&gt;\n        &lt;\/template&gt;\n    &lt;\/div&gt;\n    &lt;\/lightning-card&gt;\n&lt;\/template&gt;<\/code><\/pre>\n\n\n\n<p>multiProductRecordPicker.js<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>import { LightningElement, track } from 'lwc';\n\nexport default class MultiProductRecordPicker extends LightningElement {\n    @track productList = &#91;];\n    \n    connectedCallback() {\n        this.initializeProducts();\n    }\n\n    initializeProducts() {\n        this.productList = &#91;];\n        for (let i = 0; i &lt; 3; i++) {\n            this.productList.push({\n                lineNumber: i,\n                productId: ''\n            });\n        }\n    }\n\n    handleProductChange(event) {\n        const index = event.target.dataset.index;\n        this.productList&#91;index].productId = event.detail.recordId;\n    }\n}<\/code><\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"536\" height=\"362\" src=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-5.png\" alt=\"Select Products\" class=\"wp-image-450\" style=\"width:528px;height:auto\" srcset=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-5.png 536w, https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/lightning-record-picker-5-300x203.png 300w\" sizes=\"auto, (max-width: 536px) 100vw, 536px\" \/><\/figure>\n<\/div>\n\n\n<h2 class=\"wp-block-heading\">Summary<\/h2>\n\n\n\n<p>This article has hopefully provided a clear understanding of how to use the Lightning-record-picker component in Salesforce LWC. As a result, it enables efficient record selection and, ultimately, offers a better user experience.<\/p>\n\n\n\n<p>Make sure to leave your feedback or any questions in the comments below!<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Read More<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"\/blog\/salesforce-flow-best-practices\/\">Salesforce Flow Best Practices<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>The Salesforce Lightning Record Picker is an essential UI component in Salesforce that allows users to search for&#8230;<\/p>\n","protected":false},"author":2,"featured_media":452,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[28],"tags":[],"class_list":["post-439","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-salesforce-developer"],"featured_image_src":"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png","author_info":{"display_name":"Irfan Khatri","author_link":"https:\/\/www.irfankhatri.com\/blog\/author\/irfankhatri\/"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Salesforce Lightning Record Picker: Your Complete Guide - Irfan Khatri<\/title>\n<meta name=\"description\" content=\"Learn how the Lightning Record Picker improves user experience by streamlining record selection in Salesforce apps with customizable options.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Salesforce Lightning Record Picker: Your Complete Guide - Irfan Khatri\" \/>\n<meta property=\"og:description\" content=\"Learn how the Lightning Record Picker improves user experience by streamlining record selection in Salesforce apps with customizable options.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/\" \/>\n<meta property=\"og:site_name\" content=\"Irfan Khatri\" \/>\n<meta property=\"article:published_time\" content=\"2025-02-20T18:53:03+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-02-25T18:16:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1020\" \/>\n\t<meta property=\"og:image:height\" content=\"700\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Irfan Khatri\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Irfan Khatri\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/\"},\"author\":{\"name\":\"Irfan Khatri\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/#\\\/schema\\\/person\\\/592b5a4aabd186266009170ece2bb105\"},\"headline\":\"Salesforce Lightning Record Picker: Your Complete Guide\",\"datePublished\":\"2025-02-20T18:53:03+00:00\",\"dateModified\":\"2025-02-25T18:16:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/\"},\"wordCount\":436,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/salesforce-lightning-record-picker.png\",\"articleSection\":[\"Salesforce Developer\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/\",\"url\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/\",\"name\":\"Salesforce Lightning Record Picker: Your Complete Guide - Irfan Khatri\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/salesforce-lightning-record-picker.png\",\"datePublished\":\"2025-02-20T18:53:03+00:00\",\"dateModified\":\"2025-02-25T18:16:58+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/#\\\/schema\\\/person\\\/592b5a4aabd186266009170ece2bb105\"},\"description\":\"Learn how the Lightning Record Picker improves user experience by streamlining record selection in Salesforce apps with customizable options.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/salesforce-lightning-record-picker.png\",\"contentUrl\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/02\\\/salesforce-lightning-record-picker.png\",\"width\":1020,\"height\":700,\"caption\":\"Salesforce Lightning Record Picker\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/salesforce-lightning-record-picker-your-complete-guide\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Salesforce Lightning Record Picker: Your Complete Guide\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/\",\"name\":\"Irfan Khatri\",\"description\":\"Elevate Your Salesforce Skills with Every Read\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/#\\\/schema\\\/person\\\/592b5a4aabd186266009170ece2bb105\",\"name\":\"Irfan Khatri\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f19280c4851579ea9d5990d1776150388145c71848c65ddc5d9f691e09813bf6?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f19280c4851579ea9d5990d1776150388145c71848c65ddc5d9f691e09813bf6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/f19280c4851579ea9d5990d1776150388145c71848c65ddc5d9f691e09813bf6?s=96&d=mm&r=g\",\"caption\":\"Irfan Khatri\"},\"description\":\"Irfan Khatri is a skilled Salesforce Senior Consultant, specializing in delivering tailored solutions that drive efficiency and business growth. With expertise in optimizing workflows and implementing scalable systems, he is passionate about helping organizations unlock the full potential of Salesforce to achieve their goals.\",\"sameAs\":[\"https:\\\/\\\/www.irfankhatri.com\\\/\"],\"url\":\"https:\\\/\\\/www.irfankhatri.com\\\/blog\\\/author\\\/irfankhatri\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Salesforce Lightning Record Picker: Your Complete Guide - Irfan Khatri","description":"Learn how the Lightning Record Picker improves user experience by streamlining record selection in Salesforce apps with customizable options.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/","og_locale":"en_US","og_type":"article","og_title":"Salesforce Lightning Record Picker: Your Complete Guide - Irfan Khatri","og_description":"Learn how the Lightning Record Picker improves user experience by streamlining record selection in Salesforce apps with customizable options.","og_url":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/","og_site_name":"Irfan Khatri","article_published_time":"2025-02-20T18:53:03+00:00","article_modified_time":"2025-02-25T18:16:58+00:00","og_image":[{"width":1020,"height":700,"url":"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png","type":"image\/png"}],"author":"Irfan Khatri","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Irfan Khatri","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#article","isPartOf":{"@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/"},"author":{"name":"Irfan Khatri","@id":"https:\/\/www.irfankhatri.com\/blog\/#\/schema\/person\/592b5a4aabd186266009170ece2bb105"},"headline":"Salesforce Lightning Record Picker: Your Complete Guide","datePublished":"2025-02-20T18:53:03+00:00","dateModified":"2025-02-25T18:16:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/"},"wordCount":436,"commentCount":0,"image":{"@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png","articleSection":["Salesforce Developer"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/","url":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/","name":"Salesforce Lightning Record Picker: Your Complete Guide - Irfan Khatri","isPartOf":{"@id":"https:\/\/www.irfankhatri.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#primaryimage"},"image":{"@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#primaryimage"},"thumbnailUrl":"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png","datePublished":"2025-02-20T18:53:03+00:00","dateModified":"2025-02-25T18:16:58+00:00","author":{"@id":"https:\/\/www.irfankhatri.com\/blog\/#\/schema\/person\/592b5a4aabd186266009170ece2bb105"},"description":"Learn how the Lightning Record Picker improves user experience by streamlining record selection in Salesforce apps with customizable options.","breadcrumb":{"@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#primaryimage","url":"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png","contentUrl":"https:\/\/www.irfankhatri.com\/blog\/wp-content\/uploads\/2025\/02\/salesforce-lightning-record-picker.png","width":1020,"height":700,"caption":"Salesforce Lightning Record Picker"},{"@type":"BreadcrumbList","@id":"https:\/\/www.irfankhatri.com\/blog\/salesforce-lightning-record-picker-your-complete-guide\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.irfankhatri.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Salesforce Lightning Record Picker: Your Complete Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.irfankhatri.com\/blog\/#website","url":"https:\/\/www.irfankhatri.com\/blog\/","name":"Irfan Khatri","description":"Elevate Your Salesforce Skills with Every Read","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.irfankhatri.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.irfankhatri.com\/blog\/#\/schema\/person\/592b5a4aabd186266009170ece2bb105","name":"Irfan Khatri","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/f19280c4851579ea9d5990d1776150388145c71848c65ddc5d9f691e09813bf6?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/f19280c4851579ea9d5990d1776150388145c71848c65ddc5d9f691e09813bf6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f19280c4851579ea9d5990d1776150388145c71848c65ddc5d9f691e09813bf6?s=96&d=mm&r=g","caption":"Irfan Khatri"},"description":"Irfan Khatri is a skilled Salesforce Senior Consultant, specializing in delivering tailored solutions that drive efficiency and business growth. With expertise in optimizing workflows and implementing scalable systems, he is passionate about helping organizations unlock the full potential of Salesforce to achieve their goals.","sameAs":["https:\/\/www.irfankhatri.com\/"],"url":"https:\/\/www.irfankhatri.com\/blog\/author\/irfankhatri\/"}]}},"_links":{"self":[{"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/posts\/439","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/comments?post=439"}],"version-history":[{"count":8,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/posts\/439\/revisions"}],"predecessor-version":[{"id":455,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/posts\/439\/revisions\/455"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/media\/452"}],"wp:attachment":[{"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/media?parent=439"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/categories?post=439"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.irfankhatri.com\/blog\/wp-json\/wp\/v2\/tags?post=439"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}