You need to sign in to do that
Don't have an account?

having problem to create attachment in code for a custom object which user only have read permission
Hi,
We have apex code, API and batch class to create the custom object record and generate the attachment. since apex code is running in system mode. we want to give user only read permission on this custom object. but found out when the code trying to create an attachment for the record, got error. when user has edit permission on the object, creating attachment code is working. But shouldn't system mode care the object and field level permission at all?
We have apex code, API and batch class to create the custom object record and generate the attachment. since apex code is running in system mode. we want to give user only read permission on this custom object. but found out when the code trying to create an attachment for the record, got error. when user has edit permission on the object, creating attachment code is working. But shouldn't system mode care the object and field level permission at all?

can you post the error please