Salesforce Bolt is a vlog by Kapil Batra. You can find some really useful content, Tips & Tricks, Tutorials & Training videos here.
The purpose of this vlog is just to share the knowledge with other.
If you are working on Salesforce or planning to work on it, then you will find some really interesting stuff on this vlog.
Keep Coading, Keep Learning 😃
Kapil
8 Comments
how can we link feedcomment in other parent-child relationship as parentId is not writeable.
ReplyDeleteHi, are you looking for forceChatter:feed ?
Deletefor(FeedComment f : triggerNew ){
ReplyDeleteFeedComment chat = f.clone();
chat.Id = null;
chat.parentId = taskMap.get(f.ParentId); Not able to upload in my desired object
}
Are you getting value in f.ParentId ?
DeleteI want to link comment in another object. we can do that through parentid field of feedcomment but it is not writeable. how can we achieve that.
ReplyDeleteNot sure about it. I will try and let you know.
DeleteI have resolved it. Here is the Solution. We should run a for loop in FeedItem Object in the also make of feeditem where parentid is the key and compare the body of both map and the feeditem record in which we want to comment. if it is true than we can make new feedcomment making and assigning the parentid where we want to insert it another object.
ReplyDeleteGreat ! Thanks for sharing the knowledge here. Your answer will help others !
Delete