About

Salesforce Bolt is a blog by Salesforce MVP Kapil Batra. You can find some really useful content, Tips & Tricks, Tutorials & Training blogs here.

The purpose of this blog is just to share the knowledge with other.

If you are working on Salesforce or planning to work on it, than you will find some really interesting stuff on this blog.

Keep Coding, Keep Learning 😃


Post a Comment

8 Comments

  1. how can we link feedcomment in other parent-child relationship as parentId is not writeable.

    ReplyDelete
    Replies
    1. Hi, are you looking for forceChatter:feed ?

      Delete
  2. 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


    }

    ReplyDelete
  3. I 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.

    ReplyDelete
    Replies
    1. Not sure about it. I will try and let you know.

      Delete
  4. I 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.

    ReplyDelete
    Replies
    1. Great ! Thanks for sharing the knowledge here. Your answer will help others !

      Delete