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
voutchervoutcher 

How to make attachments private?

I have an object which is basically a store for some metadata about an attachment. I then attach a document to it which creates a neat parcel of the document and its metadata.

 

The problem is that this object has its Sharing Settings set to  'Private' but when I upload the attachment it is visible to everyone. The problem seems to be that when you upload an attachment the 'IsPrivate' flag can't be set on upload.

 

Is it possible to make the attachment follow the sharing rules of its parent?

 

Thanks for any help.

voutchervoutcher

OK, I've done some more research and it looks like it isn't possible - see my other post in the security forum. I don't think SF Content will help here either. We are really stuck...

 

http://community.salesforce.com/sforce/board/message?board.id=security&message.id=36#M36