I want to add validation before Team entity deletion. In order to do that, I need to add Pre-validation plugin step for the Delete message and Team entity.
Nevertheless, when I'm trying to do it via the Plugin Registration Tool, I'm getting an error:
Invalid Entity Name
Invalid Primary Entity or Secondary Entity specified. Please re-enter the data.
Here is the data I'm filling in the Register New Step:
I'm using Microsoft Dynamics CRM 2011.
I could not find any explanation for that. What I'm asking is:
It is possible to enable registering the plug-in by updating the corresponding SdkMessageFilterBase record.
SELECT
[dbo].[SdkMessageFilterBase].[PrimaryObjectTypeCode],
[dbo].[SdkMessageFilterBase].[CustomizationLevel],
[dbo].[SdkMessageFilterBase].[SecondaryObjectTypeCode],
[dbo].[SdkMessageFilterBase].[IsCustomProcessingStepAllowed],
[dbo].[SdkMessageFilterBase].[Availability],
[dbo].[SdkMessageFilterBase].[SdkMessageId],
[dbo].[SdkMessageFilterBase].[IsVisible]
FROM
[dbo].[SdkMessageFilterBase]
INNER JOIN [dbo].[SdkMessageBase]
ON [dbo].[SdkMessageFilterBase].[SdkMessageId] = [dbo].[SdkMessageBase].[SdkMessageId]
WHERE
[dbo].[SdkMessageBase].[Name] = 'Delete' AND
[dbo].[SdkMessageFilterBase].[PrimaryObjectTypeCode] = 9 -- Team entity code is 9
IsCustomProcessingStepAllowed
field is set to 0, it is preventing you from registering the plug-in step.IsCustomProcessingStepAllowed
to 1 to be able to register custom plug-in step.This solution worked for me.
Articles describing such solution: