You need to sign in to do that
Don't have an account?
Matthias Guenther
Cast FeedItem to a ConnectApi.FeedItem
Hi:
Just getting familiar with the ConnectAPI.
I want to repost a file to a parent object. I have a Trigger on FeedItem, is there a way to create a ConnectApi.FeedElement / ConnectApi.FeedItem form a FeedItem with the ConnectAPI?
Thanks
Just getting familiar with the ConnectAPI.
I want to repost a file to a parent object. I have a Trigger on FeedItem, is there a way to create a ConnectApi.FeedElement / ConnectApi.FeedItem form a FeedItem with the ConnectAPI?
Thanks
https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_ConnectAPI_ChatterFeeds_static_methods.htm#apex_ConnectAPI_ChatterFeeds_shareFeedElement
From a trigger, just use the ID of your FeedItem as the originalFeedElementId.