我正在创建一个插件,Dynamics CRM 2011
以便在获得潜在客户资格时执行。我使用此代码
IPluginExecutionContext context = (IPluginExecutionContext)serviceProvider.GetService(typeof(IPluginExecutionContext));
IOrganizationServiceFactory factory = (IOrganizationServiceFactory)serviceProvider.GetService(typeof(IOrganizationServiceFactory));
IOrganizationService service = factory.CreateOrganizationService(null);
Entity curEntity = (Entity)context.InputParameters["Target"];
但是当我得到它时,context.InputParameters["Target"]
它说找不到密钥。获得潜在客户资格时如何获得潜在客户实体?