You need to sign in to do that
Don't have an account?
Venkateswarlu Ch
Can Platform events support Chatter API for PostFeedElement ?
With the below snippet code we can do chatter from Apex or anonymous window
ConnectApi.FeedElement feedElement = ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), <sObjectId>, ConnectApi.FeedElementType.FeedItem, 'Hello chatter post 1');
I have put same snippet code in platform event after insert and published one record into object with Eventbus. publish(<platform event sObject>). Nothing is processing / no chatter post.
Could you please help me, can platform events support chatter API? if not, is there any workaround. Thank you!
ConnectApi.FeedElement feedElement = ConnectApi.ChatterFeeds.postFeedElement(Network.getNetworkId(), <sObjectId>, ConnectApi.FeedElementType.FeedItem, 'Hello chatter post 1');
I have put same snippet code in platform event after insert and published one record into object with Eventbus. publish(<platform event sObject>). Nothing is processing / no chatter post.
Could you please help me, can platform events support chatter API? if not, is there any workaround. Thank you!
https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_process_considerations.htm