Wednesday, September 8, 2010

plugin on assignuserrole in MS CRM 4.0 / unexposed messages in MS CRM 4.0

Every sdkmessage is present as a db record in sdkmessagefilterbase. 

MS exposes some of htese messages to the developer and some are hidden. with minor tweaking, we will be able to fire our plugins on such events. 

example: AssignUserRole


we need to fire an update query to update the 'iscustomprocessingallowed' flag to 1 instead of 0. 



update SdkMessageFilter 
set IsCustomProcessingStepAllowed = 1 
where SdkMessageId=(select SdkMessageId from SdkMessage where Name='AssignUserRoles')
This exposes the message to the pluginregistration tool that would let you register a plugin on AssignUserRoles message. 

Primaryentity- none
secondaryentity - none

Hope it is useful.

Below is the link where i read an article relating to audit:



if that's not accessible.. please click here.




No comments:

Post a Comment