
I want to give edit access to the Sales owner. Is this can be done with the criteria based Sharing rules? I did not find any solution using configuration?
Do you have any suggestion on this? else i will need to write code..
I would appreciate if you please share the code to do this..
5 réponses
So to make sure I understand... you have an opportunity that is owned by Jane. John currently does not have access or limited access to the opportunity based on your OWD. If Jane adds John as the Sales Owner you want John to be able to have read or read/write access to the Opportunity now. Is that right? Assuming so I think you will need to do some Apex Sharing. Apex sharing lets you programmatically add users to a records sharing table which would give you what you are looking for. For more info on Apex Sharing check out this article. http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_bulk_sharing_creating_with_apex.htm