カスタムメタデータレコードを使用して入力規則レコードの値を保存します。次に、レコードを入力規則内で直接参照します。さまざまな入力規則に同じ値を追加する必要はありません。パッケージを使用しますか?ロジックを定義して、カスタマイズを登録者に任せることができます。
| 使用可能なインターフェース: Salesforce Classic および Lightning Experience |
使用可能なエディション: Enterprise Edition、Performance Edition、Unlimited Edition、および Developer Edition インストール済みパッケージからカスタムメタデータ型レコードを作成、編集、削除できるエディション: Group Edition および Professional Edition |
完了したら、検証ルールでこのカスタムメタデータレコードを参照できます。構文は次のとおりです。
$CustomMetadata.CustomMetadataTypeAPIName.RecordAPIName.FieldAPIName正しいサフィックスを使用してください。カスタムメタデータ型には、__mdt を使用します。項目には、__c を使用します。レコードにはサフィックスは必要ありません。この例の入力規則は次のようになります。
Discount > $CustomMetadata.DiscountLimits__mdt.FoodDiscount.maxDiscount__c[項目の挿入] ダイアログを使用して、入力規則内でカスタムメタデータレコードを参照することもできます。[設定] で、管理オブジェクトの管理設定に移動してください。

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.