Hi CRM Folks,
What are my possibilities of preventing a duplicate case from getting created ?
1. Write a synchronous plugin and before creating a new case query all the CRM cases to check if any of the existing case title matches. If match is found throw error or else create new record.
Potential threat: It obviously creates a lot of performance problems as it is synchronous plugin and moreover for every case creation, it needs to query the whole CRM database to check if a matching record is found or not.
2. Create duplicate detection rule
Potential threat: This runs only if record is created from UI or from outlook. But this rule doesnt execute if you create a case record from workflow or using IOrganizationService.
What are my other possibilities of restricting creation of duplicate cases from synchronous plugin? (Something like using BulkDetectDuplicate request class or RetrieveDuplicatesRequest class. Appreciate if you can provide me some code related to these classes)?
Thanks in advance
*This post is locked for comments