I am trying to inserting Feed-Item with Attachment in Production and in Sandbox separately for community users.
Community is active and my customer profile is added to the community. I know that I have to the put Image File into Content and get the Content-Version Id. I can use the Content Version Id to reference in RelatedToID and this inserts a record with attachment in Community.
I can do this successfully as a System Admin in Sandbox but it is failing in Production with the error.
"You do not have the level of access necessary to perform the operation you requested. Please contact the owner of the record or your administrator if access is necessary."
Possible Issue which I could be is: The File is not getting shared with the Community User. The only different thing which I find is File is Shared in Sandbox and in Production it is not.But, this sharing happened automatically in production.
Can Community/Feed-Item expert help me out in this?