Plugin on Pre-Validation Stage in Dynamics 365 CE – Nishant Rana’s Weblog

Nishant RanaDyn365CE6 years ago4 Views

Recently we had a requirement to delete the Account record without deleting the associated Contact records.

If we try deleting the account record we’d get the following message box

The relationship definition can’t be updated as well to achieve this

So, we wrote a plugin on the pre-validation stage of pre-delete event of Account, which will retrieve and loop through all the child contact records and set its parent customer field as null.

In case of pre-operation the child records…

Continue Reading Nishant Rana’s Article on their blog

Plugin on Pre-Validation Stage in Dynamics 365 CE – Nishant Rana’s Weblog

Blog Syndicated with Nishant Rana’s Permission

0 Votes: 0 Upvotes, 0 Downvotes (0 Points)

Leave a reply

Sign In/Sign Up Sidebar Search
Popular Now
Loading

Signing-in 3 seconds...

Signing-up 3 seconds...