Home > MS CRM 4.0 > Plug-in for Association and deassosition in N-N relationship

Plug-in for Association and deassosition in N-N relationship


USE ORGNAME_MSCRM
GO

— Find the deployments SDK Filter ID for the
— Associate and Disassociate Entity SDK Messages
DECLARE @DisassociateEntitiesFilterId uniqueidentifier
DECLARE @AssociateEntitiesFilterId uniqueidentifier
SET @DisassociateEntitiesFilterId = (SELECT SdkMessageFilterId FROM SdkMessageBase WHERE [Name] = ‘DisassociateEntities’)
SET @AssociateEntitiesFilterId = (SELECT SdkMessageFilterId FROM SdkMessageBase WHERE [Name] = ‘AssociateEntities’)

— Enable the Associate and Disassociate Filters to be valid for custom processing
— Custom Processing means "you register plug-ins against it"
— Note: We only do this for the "generic" (OTC == 0) case, just to be safer
UPDATE SdkMessageFilterBase SET IsCustomProcessingStepAllowed = 1
WHERE SdkMessageFilterId = @DisassociateEntitiesFilterId AND PrimaryObjectTypeCode = 0

UPDATE SdkMessageFilterBase SET IsCustomProcessingStepAllowed = 1
WHERE SdkMessageFilterId = @AssociateEntitiesFilterId AND PrimaryObjectTypeCode = 0

Advertisements
Categories: MS CRM 4.0
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: