CRM 2011: Multiple Cascade Delete – part 2

In my previous post CRM 2011: Multiple Cascade Delete – part 1 I discussed the limitations in relationship behavior configuration for manual intersect entities, and proposed a solution with a plugin and a configuration entity. In this post I will go into the details of the plugin and how it is registered. I will not … Continue reading CRM 2011: Multiple Cascade Delete – part 2

CRM 2011: Multiple Cascade Delete – part 1

As I have recently mentioned, the possibilities of defining cascade deletes in Microsoft Dynamics CRM 2011 are quite limited. Only one parent entity can have the relationship behavior set to Cascade Delete. When you create a manual intersect entity to connect two or more other entities, this constraint is simply not acceptable for the end … Continue reading CRM 2011: Multiple Cascade Delete – part 1

CRM Plugins: Retrieve children during Delete

Tip of the day! If you want to write a plugin that needs to read children of a record being deleted – this must be done in the Pre Validation stage. Why is that? For 1:N relations with Delete Behavior: Remove Link, the lookup to the parent being deleted is set to null somewhere between … Continue reading CRM Plugins: Retrieve children during Delete

Execute Server-Side Code from Javascript

Background: General business rules shall be implemented in server-side code to ensure its execution regardless of the origin of data changes; CRM UI, workflow, integration or any other application consuming the CRM web services. But on some occasions it would be handy to be able to execute this code from JavaScript to improve the user's … Continue reading Execute Server-Side Code from Javascript

Adding Duplicates in N:N-Relations

The possibility to use many-to-many relations in Microsoft Dynamics CRM 2011 is very handy for various scenarios. However, it's implementation is not very forgiving when you try to add a relation which already exists.   There is no way to configure the relationship or functionality of the "Add existing..." ribbon button to prevent this "ugly" … Continue reading Adding Duplicates in N:N-Relations