We have a large Dynamics CRM 2011 project with over 300 plugin steps, looking through the plugin registration or customizations for a specific plugin or a step isn't easy. I get dizzy! Here's a SQL query that you can use to quickly filter and find the plugin or the step that you're looking for.
select
distinct
c.LogicalName,
a.EventHandlerName,
a.SdkMessageIdName,
case
a.Stage
when
10
then
'Pre Validation'
20
'Pre'
30
''
40
'Post'
50
'Post (Deprecated)'
end
as
Stage,
a.Mode
0
'Synchronous'
1
'Asynchronous'
Mode,
isnull
(a.FilteringAttributes,
)
FilteringAttributes
from
SdkMessageProcessingStep a
inner
join
SdkMessageFilter b
on
a.SdkMessageFilterId = b.SdkMessageFilterId
MetadataSchema.Entity c
c.ObjectTypeCode = b.PrimaryObjectTypeCode
where
a.IsHidden = 0
order
by
c.LogicalName, a.EventHandlerName
The query above is very basic, it'll show you the entity, message, stage, mode, filtering attributes that are registered for each plugin step. Enjoy!