In our community, we want to post automated welcome messages in Chatter. Does anyone know if it is possible to use a flow and process builder to post to Chatter on behalf of another user, like say a community manager. I know that the ConnectApi does not allow this, but you can get around this in plain apex. I'm also curious if there is a declarative way around this as well.
You can set
FeedItem in visual workflow.
This will set who the post is from.
Couldnt figure out a way to do it in process builder, as the 'post to chatter' functionality doesnt let you set this, and 'feedItem' is not listed in the 'create a record' option
Screenshot of my assignment element and the test flow below
Assignment element to construct feedItem sObject variable
This flow successfully created a post on the ParentId user's feed, from the User set as CreatedById
Came across another sfse post that highlights one limitation of this approach - you can't at mention anyone or use topics. Also not sure about any community specific considerations.
To at mention you need to use the standard post to chatter element, but it doesn't appear like you can set created by id going that route.
So if you need at mention capabilities along w created by id, a custom Apex plugin likely is needed.