The dynamic CRM Merge functionality will set the related records of the child record to the master record. But, I don't want this to happen. Can I do this on Merge message in plugin? Or is there any other way or approach to achieve this?
Can anyone please help me?
*This post is locked for comments
Finally I have taken an approach to write Pre and Post operation plugin on merge message of master entity.
On Pre merge operation I have retrieved collection of all related entities and context data. Stored it in a shared variable. And finally used it in post merge operation to revert the changes done by OOB Merge.
And it worked!!
Thank you very much for the reply. This suggestion really seams to be a correct way to achieve the requirement. I will try doing it practically. Thank you.
First solution I can think of is a plugin on Update of that related records. In this plugin you have to check if this Update is caused by Merge message (you have to check the parent plugin context). If this is coming from merge, simply remove the attributes which are pointing to the new parent record (in such case the parent will not be changed)
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