SBX - Finance Heading

MS Dynamics CRM Associate/Disassociate message Plugin

Options

In MS CRM Plugin Associate/Disassociate messages are used only for N-N relationship adding/removal of a associate record.

Note: With 1-N relationship you will have to use Update message with filter by relationship lookup.For handling of deleting of records from sub-grid you will have to handle Delete message.For example if you have grid of child records on parent record then if the grid is containing 1:n relationship child records then no need to write plugin on associate and disassociate messages for any logic. For that Update message will work.

In MS CRM Plugins, the Associate & Disassociate messages behave little bit different than other messages.

When you register a plugin on Associate message, you have to leave "Primary"and "Secondary" entities as 'none'.

Since we don’t provide entity names, the registered Plug-in step triggers on all "Associate" & "Disassociate" operations, so we have to check few conditions to let the “Association” & "Disassociate" trigger happen only between intended entities. You can use the below code template for Associate or Disassociate plugins.