【发布时间】:2014-03-08 13:55:47
【问题描述】:
我的插件在实体 X 上的 Pre Create 操作时触发。当尝试使用以下代码更新实体 X 上的字段时,我收到错误:
trEntity = (Entity)context.InputParameters["Target"];
trGuid = (Guid)trEntity.Id;
tr = (Entity)service.Retrieve("EntityX", trGuid,
new ColumnSet(new string[] { "field_a", "field_b" }));
tr["field_a"] = null;
service.Update(tr);
我得到的错误是: Id = 11505683-2292-b537-e311-143710e56fb7 的实体 X 不存在
【问题讨论】:
标签: dynamics-crm dynamics-crm-2011 power-platform