function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Venkateswarlu ChVenkateswarlu 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!
Raj VakatiRaj Vakati
No   .. Post to Chatter Actions You can’t include event references in Chatter post messages.


https://developer.salesforce.com/docs/atlas.en-us.platform_events.meta/platform_events/platform_events_process_considerations.htm
Raj VakatiRaj Vakati
Is its solved ?