
I have tried doing this with a before insert trigger on attachment, but it always fails because that field is read-only for some reason.
2 réponses
instead of before insert try update.
Attachment att =[Select id,IsPartnerShared From Attachment where Parentid='<<Account ID>>'];
att.IsPartnerShared =true;
update att;