Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Delete Plugin not triggering during Merge

Posted on by Microsoft Employee

Hi All,

We have a delete plugin on one custom entity to create a log record during deletion of that record, its working fine. In the same entity we have a merging concept selecting two records we can merge one but during that merge one record is getting removed from DB (Checked "select count(*) from entity") but during that time delete plugin is not triggering. May I know the concept behind this Merge. Is it actually deleting the record during merge?

even we tried placing the delete plugin in pre validation stage.

*This post is locked for comments

  • Verified answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Delete Plugin not triggering during Merge

    Hi,

    if you didnt implement any  workflows or plugins to delete the record while merge, actually the record is still there, it just become inactive.

    7624.60.png

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Delete Plugin not triggering during Merge

    Hi Wei,

    Actually in my case after merge the record is getting removed I guess I tested even in DB using that record guid, but delete plugin is not triggering. I need to know whether merge actually delete the record from system or move the record to some tables.

  • Suggested answer
    Alex Fun Wei Jie Profile Picture
    Alex Fun Wei Jie 33,626 on at
    RE: Delete Plugin not triggering during Merge

    Hi,

    After you merge the record, the record is still there, it is not deleted. Refer below post on how to find the merged record if you are using on prem version.

    community.dynamics.com/.../223601

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Delete Plugin not triggering during Merge

    Please let me know if you have any suggestion

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans