Triggers 如何在父子关系中上传FeedComment

Triggers 如何在父子关系中上传FeedComment,triggers,salesforce,sfdc,Triggers,Salesforce,Sfdc,我想在Chatter中上传评论,每当在父对象中发布评论时,它应该在子对象中发布,反之亦然。我无法上传,因为订阅源中的parentid评论不可写 for (FeedComment f : triggerNew ) { FeedComment chat = f.clone(); chat.Id = null; chat.parentId = taskMap.get(f.ParentId); Not able to upload in my desired object }

我想在Chatter中上传评论,每当在父对象中发布评论时,它应该在子对象中发布,反之亦然。我无法上传,因为订阅源中的parentid评论不可写

for (FeedComment f : triggerNew ) {
    FeedComment chat = f.clone();
    chat.Id = null; 
    chat.parentId = taskMap.get(f.ParentId); Not able to upload in my desired object
}