【发布时间】:2018-08-17 12:55:49
【问题描述】:
我正在使用 Apex 创建案例评论。我正在使用以下代码添加评论:
CaseComment cc=new CaseComment();
cc.ParentId=obj.Id;
cc.CreatedById='12323re';
cc.CommentBody='test comment';
insert cc;
我在编译时收到以下错误: 字段不可写:CaseComment.CreatedById
如何更改案例评论的创建者?
【问题讨论】:
-
Anshu Kumar - 你能用不同的用户发布案例评论吗?
标签: salesforce case salesforce-chatter salesforce-communities