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
PedroLPedroL 

Exception when triggering a Post Feed from a Portal User

Hello,

 

I wrote a simple trigger to add a post on the project object whenever a new case is logged under that project. The trigger is working fine whenever I use a standard user but when it is a portal user creating the case, I'm getting the exception:

 

System.DmlException: Insert failed. First exception on row 0; first error: CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Entity is read-only: FeedItem: []

 

Thanks,

 

Pedro

sebcossebcos
Hi Pedro,
I am afraid that chatter objects are read only for portal user as suggested in the error message.