You need to sign in to do that
Don't have an account?
jaishri
Case sharing record with user but access level is not working can anyone help me
List<CaseShare> csShareList = new List<CaseShare>(); for(case cs:trigger.new){ if(cs.Employee_Manager__c!=Null){ CaseShare csShare = new CaseShare(); // Give Read write access to that user for this particular case record. csShare.CaseAccessLevel = 'Read'; // Assign case Id of case record. csShare.CaseId = cs.id; // Assign user id to grant read write access to this particular case record. csShare.UserOrGroupId = cs.Employee_Manager__c; csShare.RowCause='Manual'; csShareList.add( csShare ); } } insert csShareList;
Are you trying to give read access to the Employee_Manager__c?
Thanks,
yes , i want to give the read access to this Employee_Manager__c.
Did you check if the record got created succesfully by quering it?
Thanks,
yes record is created successfully and sharing with other users also but accesslevel not working.
Does the profile has read access on the case object?
Thanks,