May I suggest you please give a try by using matching rules which might help.
Matching Rules are used to identify duplicate records within Salesforce. When the matching rule is run, it compares the record’s match keys against those for existing records. Then, for records that share the same match keys, the matching rule uses matching algorithms to compare fields and determine how closely the fields, and ultimately the records, match. If two records’ don’t share the same match keys, they are not considered duplicates and the matching algorithms will not even be applied to them.
May I suggest you please give a try by using matching rules which might help.
Matching Rules are used to identify duplicate records within Salesforce. When the matching rule is run, it compares the record’s match keys against those for existing records. Then, for records that share the same match keys, the matching rule uses matching algorithms to compare fields and determine how closely the fields, and ultimately the records, match. If two records’ don’t share the same match keys, they are not considered duplicates and the matching algorithms will not even be applied to them.
Sorry for this issue you are facing.
May I suggest you please give a try by using matching rules which might help.
Matching Rules are used to identify duplicate records within Salesforce.
When the matching rule is run, it compares the record’s match keys against those for existing records. Then, for records that share the same match keys, the matching rule uses matching algorithms to compare fields and determine how closely the fields, and ultimately the records, match. If two records’ don’t share the same match keys, they are not considered duplicates and the matching algorithms will not even be applied to them.
For more information please refer to below links.
- https://success.salesforce.com/answers?id=9063A000000lCryQAE
- https://help.salesforce.com/articleView?id=matching_rule_map_of_reference.htm&type=5
- https://help.salesforce.com/articleView?id=matching_rule_matching_examples.htm&type=5
- https://trailhead.salesforce.com/en/content/learn/modules/sales_admin_duplicate_management/sales_admin_duplicate_management_unit_2
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra
All Answers
1 . Create a formual field call unique Combined and API name is unique_combined__c ( formula will be rating+subrating+county ) and retunr type is text
user this formual in trigger to get the duplicate codes
try this sample code
Sorry for this issue you are facing.
May I suggest you please give a try by using matching rules which might help.
Matching Rules are used to identify duplicate records within Salesforce.
When the matching rule is run, it compares the record’s match keys against those for existing records. Then, for records that share the same match keys, the matching rule uses matching algorithms to compare fields and determine how closely the fields, and ultimately the records, match. If two records’ don’t share the same match keys, they are not considered duplicates and the matching algorithms will not even be applied to them.
For more information please refer to below links.
- https://success.salesforce.com/answers?id=9063A000000lCryQAE
- https://help.salesforce.com/articleView?id=matching_rule_map_of_reference.htm&type=5
- https://help.salesforce.com/articleView?id=matching_rule_matching_examples.htm&type=5
- https://trailhead.salesforce.com/en/content/learn/modules/sales_admin_duplicate_management/sales_admin_duplicate_management_unit_2
Hope this helps.Kindly mark this as solved if the reply was helpful.
Thanks,
Nagendra