CRM Plugin for Publish and Publish All messages

后端 未结 2 724
我寻月下人不归
我寻月下人不归 2021-01-14 06:23

I was wondering if we can write plugins that get executed for messages like \"publish\" and \"publish all\" in Dynamics CRM (any version). if so can you share any sample ref

2条回答
  •  长情又很酷
    2021-01-14 06:56

    See here for a list of valid Dynamics CRM messages. Publish and PublishAll are both listed. They're also valid in all version of CRM from 2011 onward.

    https://msdn.microsoft.com/en-us/library/gg328576.aspx

    Just register your plugin like any other but use Publish or PublishAll for the message and leave the Entity as blank.

    In the case of Publish, it seems by looking at the documentation that you can't narrow down which entity is being published. You'll have to take a look at what the Input Parameters give you to see if you can work out which entity you're dealing with, if you need it.

提交回复
热议问题