Quantcast
Channel: Active questions tagged chatter-feed - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 192

ConnectApi.NotFoundException: Resource not found

$
0
0

I am getting an error when using the ConnectApi to post a feed:

ConnectApi.NotFoundException: Resource not found. Class.ConnectApi.ChatterFeeds.getFeedElement: line 1502, column Class.ChatterPostParser: line 154, column 1 Class.RestComments.insertComment: line 66, column 1

I am trying this code:

List<User> mentionUsers = new List<User>();
ConnectApi.CommentInput feedCommentInput = 

ChatterPostParser.parseChatterCommentWithMentions(comment, mentionUsers);
ConnectApi.Comment commentRep = ConnectApi.ChatterFeeds.postCommentToFeedElement(
                                  Network.getNetworkId(),
                                  (Id)feedId,
                                  feedCommentInput,
                                  null);

Viewing all articles
Browse latest Browse all 192

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>