【发布时间】:2011-12-29 20:59:32
【问题描述】:
我正在尝试通过代码添加注释,注释添加得很好,但它不会添加正确的 CreatedBy 用户。它只是添加注释并将 createdby 用户设置为管理员。这是我正在使用的:
Entity annotation = new Entity("annotation");
annotation["createdby"] = new EntityReference("systemuser", new Guid("2a213502-db00-e111-b263-001ec928e97f"));
annotation["objectid"] = new EntityReference("opportunity", opportunityId);
annotation["subject"] = "Lead Note";
annotation["notetext"] = p.Column_18;
Guid annotationId = lService.Create(annotation);
添加 CreatedBy 需要做一些特别的事情吗?
谢谢!
【问题讨论】:
标签: dynamics-crm dynamics-crm-4 dynamics-crm-2011