Why target is entity reference in delete message plugin not entity. just curious to know.
*This post is locked for comments
Why target is entity reference in delete message plugin not entity. just curious to know.
*This post is locked for comments
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.
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!
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