Step 1 Create a "Match object" reference field on the Duplicate Check Duplicates object.
- Navigate to the Salesforce Setup - Object Manager - Duplicate Check Duplicate.
- At "Fields & Relationships", click "New" to add a new field.
- At "Data Type", choose "Lookup Relationship". Click Next.
- At "Related To", choose the object you want to configure this for.
- At "Field Label", enter the following value: "MatchObject", where you replace the "Object" part with the name of your Object.
If your object is called "Bear", the value should be "MatchBear". - At "Field Name", the value should be generated automatically. If not, make sure it has the same value as Field Label.
- Click Next.
- At field-level security, make sure the profile that is going to use this feature has access to the field. Click next.
- At the page layout configuration, click next. I doesn't matter if the field is added to the Duplicate Check Duplicate page layout or not.
- At the page layout configuration for your custom object, make sure the field is not added to the page layout.
- Click Save.
Step 2 Create a "Source object" reference field on the Duplicate Check Duplicates object.
- Navigate to the Salesforce Setup - Object Manager - Duplicate Check Duplicate.
- At "Fields & Relationships", click "New" to add a new field.
- At "Data Type", choose "Lookup Relationship". Click Next.
- At "Related To", choose the object you want to configure this for.
- At "Field Label", enter the following value: "SourceObject", where you replace the "Object" part with the name of your Object.
If your object is called "Bear", the value should be "SourceBear". - At "Field Name", the value should be generated automatically. If not, make sure it has the same value as Field Label.
- Click Next.
- At field-level security, make sure the profile that is going to use this feature has access to the field. Click next.
- At the page layout configuration, click next. I don't matter if the field is added to the Duplicate Check Duplicate page layout or not.
- At the page layout configuration for your custom object, make sure the field is not added to the page layout.
- Click Save.