Quantcast
Channel: Active questions tagged feeditem - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 160

Post Feed Item in User Feed

$
0
0

I'm trying to use apex code so user will be able to post message in other user feed.

Tried this simple code:

ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(),     targetUserId,     ConnectApi.FeedElementType.FeedItem, 'Test message...');

As a result, I can see the message does appear in the sender user feed:senderUser to targetUserTes message...

But I the message does not appear in the target user feed.

Am I doing something wrong or this is how it should work? If yes, is there any option that it will appear on the target user feed?


Viewing all articles
Browse latest Browse all 160

Trending Articles



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