Dynamics crm 添加注释
我试图通过代码添加注释,注释添加得很好,但它不会添加正确的CreatedBy用户。它只是添加注释并将createdby用户设置为管理员。这就是我正在使用的:Dynamics crm 添加注释,dynamics-crm,dynamics-crm-4,dynamics-crm-2011,Dynamics Crm,Dynamics Crm 4,Dynamics Crm 2011,我试图通过代码添加注释,注释添加得很好,但它不会添加正确的CreatedBy用户。它只是添加注释并将createdby用户设置为管理员。这就是我正在使用的: Entity annotation = new Entity("annotation"); annotation["createdby"] = new EntityReference("systemuser", new Guid("2a213502-db00-e111-b263-001ec928e97f")); annotation["ob
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,是否需要执行任何特殊操作
谢谢 不能在“创建”或“更新”中设置createdby。请参见属性的描述。它对创建或更新无效。系统将为执行当前请求的用户设置此属性 您必须使用模拟以另一个用户的名义创建记录。因此,必须将CallerId属性设置为要模拟的用户标识。看