Dynamics crm 2011 使用插件--stringmap作为PrimaryEntity监视dynamics CRM stringmap表更新

Dynamics crm 2011 使用插件--stringmap作为PrimaryEntity监视dynamics CRM stringmap表更新,dynamics-crm-2011,dynamics-crm,crm,Dynamics Crm 2011,Dynamics Crm,Crm,在dynamics CRM中,我可以使用插件监视stringmap表更新吗?我只需要监视一个属性,比如[AttributeName]=“abc” 我将以下项目添加到插件XML配置文件中,导入XML文件后,PrimaryEntity为none <Step PluginTypeName="Classes.Ind" Description="Ind PreCreate" InvocationSource="0" MessageName="Create" Mode="0" PrimaryEntit

在dynamics CRM中,我可以使用插件监视stringmap表更新吗?我只需要监视一个属性,比如[AttributeName]=“abc”

我将以下项目添加到插件XML配置文件中,导入XML文件后,PrimaryEntity为none

<Step PluginTypeName="Classes.Ind" Description="Ind PreCreate" InvocationSource="0" MessageName="Create" Mode="0" PrimaryEntityName="stringmap" SecondaryEntityName="none" Stage="10" SupportedDeployment="0" Rank="1" Id="B53A4743-*">

点击自定义设置的唯一方法是收听Publish或PublishAll消息。 在插件中,您需要处理定制xml(XmlDocument)以进行特定更改

e、 g

context.InputParameters[“ParameterXml”].ToString()看起来像CustomEntity。它被连接到返回的xml不遵循ParameterXml架构…可能是的重复项
<importexportxml>
 <optionsets>
  <optionset>new_myoptionset</optionset>
 </optionsets>
</importexportxml>
if (context.Message == "Publish"" && context.InputParameters.Contains("ParameterXml"))
{ 
     XmlDocument xCust = new XmlDocument();
     xCust.Load(context.InputParameters["ParameterXml"].ToString());

     // look for your optionset using xpath   …
}