詳細情報:
数式のレコードタイプを参照するためのヒント
さまざまなワークフロールール、入力規則、またはルックアップ検索条件をさまざまなレコードタイプに適用するためのヒントを紹介します。数式でレコードタイプ名または ID を使用して、レコードの分類に基づいてロジックを適用するケースについて説明します。さらに、レコードタイプのグローバル変数の使用をデフォルト値の数式に制限する方法と、Sandbox および本番環境でのリリースに関する考慮事項について説明します。

より一般的な検索語を使用する。
絞り込み条件を減らして、検索範囲を広げる。
さまざまなワークフロールール、入力規則、またはルックアップ検索条件をさまざまなレコードタイプに適用するためのヒントを紹介します。数式でレコードタイプ名または ID を使用して、レコードの分類に基づいてロジックを適用するケースについて説明します。さらに、レコードタイプのグローバル変数の使用をデフォルト値の数式に制限する方法と、Sandbox および本番環境でのリリースに関する考慮事項について説明します。
| 使用可能なインターフェース: Salesforce Classic と Lightning Experience の両方 |
| 使用可能なエディション: すべてのエディション |
| レコードタイプを使用可能なエディション: Professional Edition、Enterprise Edition、Performance Edition、Unlimited Edition、および Developer Edition |
たとえば、次のような操作が可能です。
可能な場合は、RecordType.Name ではなく RecordTypeId を使用して特定のレコードタイプを参照します。RecordType.Name により、数式が読みやすくなりますが、レコードタイプの ID が変更になることはないため、レコードタイプの名前が変わるたびに、数式を更新する必要があります。また、RecordType.Name ではレコードタイプへのクロスオブジェクト参照が必要ですが、RecordTypeId では不要です。ただし、ID は組織全体で同じではないため、組織全体 (Sandbox と本番間など) で数式をリリースする場合は RecordType.Name を使用します。
デフォルト値の数式を除き、数式では $RecordType を使用しないでください。代わりに、オブジェクトで RecordType 差し込み項目 (Account.RecordType.Name など) または RecordTypeId 項目を使用します。

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.