Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics CRM (Archived)

Delete Message in Plugins

Posted on by 160

Why target is entity reference in delete message plugin not entity. just curious to know.

*This post is locked for comments

  • kunalks2003 Profile Picture
    kunalks2003 315 on at
    RE: Delete Message in Plugins

    Only thing required to Delete a record is Name of entity and its GUID Entity reference has both . IF you pass Entity it will do the same job but will be a bigger object if users add any other column and serialization and deserialization will be slow.

  • Verified answer
    Charles Abi Khirs Profile Picture
    Charles Abi Khirs 3,569 on at
    RE: Delete Message in Plugins

    Hello,

    I believe because when you delete the record, it is no longer exists in CRM, that's why the system will reference this deleted record and the target is entity reference.

    However, if you create your delete step in post operation and create a PreImage image under this post delete step, you can always get the target as entity and not entity reference.

    Hope this helps!

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,253 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,188 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans