You need to sign in to do that
Don't have an account?
Naveen Kvp
how to overcome sharing rules limit in enterprise edition ??
Hi everyone i have a requirement to create criteria based sharingrule. but edition limit 50 (enterprise) is exceeded how can i create sharing rule for account object.For this account OWD is set as private!! give me some valuable suggestions or ideas..!!
If you are sharing the same set of records to different roles in each sharing rule, then you can create the Public Group and combine those roles under Public group.
Also if you want to increase the limit of sharing rules you can contact Salesforce support.
Thanks,
Pratik
Ex: Job__c is an object.
// Set the ID of record being shared.
jobShr.ParentId = recordId;
// Set the ID of user or group being granted access.
jobShr.UserOrGroupId = userOrGroupId;
// Set the access level.
jobShr.AccessLevel = 'Read';
// Set rowCause to 'manual' for manual sharing.
// This line can be omitted as 'manual' is the default value for sharing objects.
jobShr.RowCause = Schema.Job__Share.RowCause.Manual;
// Insert the sharing record and capture the save result.
// The false parameter allows for partial processing if multiple records passed
// into the operation.
Database.SaveResult sr = Database.insert(jobShr,false);
Thanks,
Raviteja