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
vishesh91vishesh91 

post chatter from specific user

I want to post to chatter for a case object from a specific user id.I have case Id and user id.giving feedItem.parentId=caseId is working , but how to set userId from which chatter is to be posted.

 

please help

Jia HuJia Hu
Make sure you have the "Insert System Field Values for Chatter Feeds" permission,
then you can use FeedItem.CreatedById = userid