Spring '25 では、高度なルックアップ検索に新しい UI が追加されました。
Advanced Lookup Search Has an Updated UI (高度なルックアップ検索の UI の更新)
Lightning Web Component (LWC) で「lightning-input-field」を使用してレコードフォームに参照項目を表示する場合、新しい高度なルックアップ検索 UI が常に表示されるとは限りません。
新しい UI が表示されるか古い UI が表示されるかは、ログインしているユーザーがルックアップフィールドに関連付けられたオブジェクトに対する「作成」権限を持っているかどうかによって決まります。
UI の状態として考えられるのは以下の 2 つです。
・新しい高度なルックアップ検索 UI (LWC) : 関連オブジェクトに対する「作成」権限をユーザーが持っていない場合に表示されます。
・旧バージョンの高度なルックアップ検索 UI (Aura) : ユーザーが関連オブジェクトに対するレコード「作成」権限を持っている場合に表示されます。
これは設計どおりの動作です。
Lightning Web Component の lightning-input-field は、参照項目のドロップダウンメニューから直接新しいレコードを作成することをサポートしていません。
新しい 高度なルックアップ検索 UI (LWC) も、インラインレコードの作成をサポートしていません。
そのため、ログインしているユーザーが関連オブジェクトに対する「作成」権限を持っている場合、Salesforce は古い Aura ベースの高度なルックアップ検索 UI にフォールバックします。これは、古い Aura ベースの高度なルックアップ検索 UI がレコード作成をサポートしているためです。
参考までに、lightning-input-field コンポーネントリファレンスには次のように記載されています。
"検索フィールドのドロップダウンメニューから新規レコードを作成する機能は、現在サポートされていません。"
UI の動作条件は以下のとおりです。
・ログインしているユーザーが関連オブジェクトに対する作成権限を持っている場合 → 旧バージョンの高度なルックアップ検索 UI (Aura) が表示されます。
・ログインしているユーザーが関連オブジェクトに対する作成権限を持っていない場合 → 新しい高度なルックアップ検索 UI (LWC) が表示されます。
関連情報:
004141482

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.