You need to sign in to do that
Don't have an account?
Team Works
Compile Error: Field is not writeable for ,leadaccesslevel='read'
Hi All
I keep getting the error message;
Compile Error: Field is not writeable: LeadShare.LeadId at line 14 column 57
if(PartnerUsermap.ContainsKey(ld.createdById)){
partnershare = new LeadShare(LeadId=ld.id,UserOrGroupId=ld.createdById,leadaccesslevel='read');
leadshares.add(partnershare);
}
How to overcome this?Please suggest
Cheers
Check your OWD sharing setting for LEAD seems is public read/write make is private or read only.
~Thanks,
Onkar Kumar
All Answers
Can you post your code. Logic wise its fine and it work well.
Hello,
Try and review the following:
http://boards.developerforce.com/t5/forums/forumtopicprintpage/board-id/apex/message-id/40743/print-single-message/false/page/1
Check your OWD sharing setting for LEAD seems is public read/write make is private or read only.
~Thanks,
Onkar Kumar
Thanks a lot Guys!!First time coding for sharing. ..