You need to sign in to do that
Don't have an account?
how to insert a feedItem from trigger
the beloecode showing exception like
CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY
trigger acc on FeedItem (after insert)
{
FeedItem post = new FeedItem();
post.ParentId ='0019000000GuVUM';
post.Body = 'welcome';
Database.insert(post);
}
How to solve it.
Your code is correct.
Does the user have permission to write on the chatter feed for the ParentId you have hard coded?
how to check user permissions..?
please give me reply.
Go to the page for 0019000000GuVUM and see if you can post to that chatter feed.