Hi there how can i prevent the creation of duplicate record in crm by using web api sdk in java.
*This post is locked for comments
Hi there how can i prevent the creation of duplicate record in crm by using web api sdk in java.
*This post is locked for comments
Alternatively, you can set alternate keys on the entities to restrict duplicate record. This will ensure that you cannot create a duplicate from anywhere :)
community.dynamics.com/.../d365-alternate-keys-for-duplicate-detection
community.dynamics.com/.../define-alternate-keys-for-an-entity
www.powerobjects.com/.../alternate-keys-as-an-alternative-to-duplicate-detection-rules
Hope this helps.
Hello,
To avoid duplicates to be created use MSCRM.SuppressDuplicateDetection header in your http request. More detailed information can be found here - docs.microsoft.com/.../manage-duplicate-detection-create-update
Yes you can. On click of save, you can check the formtype. If formtype is equal to 1, you can check for the duplicate record. If duplicate record exist, you can restrict system from saving the form.
You can refer to below link for same:
https://neilparkhurst.com/2015/11/11/javascript-prevent-save/
General practice is to write a server side code through plugin on pre-create event.
Using plugin you can restrict duplicate record creation through excel import or record creation through any sort of integration.
Using javascript,it will only check when user performs creation of record through CRM form.
Mark answer correct if you find useful.
Thanks
Hi ,
You can create plugin for the respective entity create event and return error if any duplicate data founds.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,253 Super User 2024 Season 2
Martin Dráb 230,188 Most Valuable Professional
nmaenpaa 101,156