I 'm creating a post for a chatter's group. All works with:

FeedItem post = new FeedItem();


post.ParentId =fgroup.id;

But i want that the post is created by the group.

if a write:


i get an error.

Do you know other way?


CreatedById is always a user. You can't use a group as the poster. You could use the "Chatter Expert" user or create your own user to use when posting generic messages.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.