Object Reference for the Salesforce Platform
Newer Version Available
MatchingRule
A matching rule compares field values to determine whether a record is similar enough to existing records to be considered a duplicate. For example, a matching rule can specify that if the Email and Phone values of two records match exactly, the records are possible duplicates. Your organization uses matching rules with duplicate rules to define what happens when duplicates are identified.
If the rule is for a Person Account, SobjectSubType is automatically set to PersonAccount.
Supported Calls
describeSObjects(), query(), retrieve()
Special Access Rules
As of Summer ’20 and later, only users with the View Setup and Configuration permission can access this object.
Fields
Usage
Use the Salesforce API to retrieve and view details about MatchingRule and MatchingRuleItem. Use the Salesforce Metadata API to create, update, or delete these objects.