Step 1. Navigate to your Dynamics 365 system and click on 'Settings'. Then, select 'Data Management' followed by 'Duplicate Detection Rules'.
Step 2. Select Duplicate Detection Rule.
Step 3. Select the New button.
Step 4. Provide the necessary details to create the duplicate detection rule:
Enter a name and description for the rule.
Choose the entity type to which the rule will apply from the 'Base Record Type' list.
Select the entity type against which you'll compare the 'Base Record Type' by choosing a 'Matching Record Type' from the dropdown list.
Specify whether the rule should be case-sensitive or not.
Define the criteria for identifying a matching record.
In the same row, in the Criteria column, Select, and then select an operator. For example, select Exact Match.
If you specified the Same First Characters or the Same Last Characters in the No. Of Characters column, select Enter Value, and then enter the number of characters to compare.
If you don't want the rule to consider blank fields (null values) as equal while identifying duplicates, select the Ignore Blank Values check box.
Step 5. Create a record with the Same as Ex: “allam”