You need to sign in to do that
Don't have an account?
![dejanzivanovic[urbanhawks] dejanzivanovic[urbanhawks]](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Sharing Rules and Apex Code
I have created sharing rules, roles and users in roles. But sharing rules on custom object dont apply, on sales force object Accounts and Contact work. I have pages.
Does usage of jquery menus and java scripts on pages overrides sharing rules?
Thanks.
Sharing rules apply to all standard and custom objects.
Make sure you include "with sharing" key word in your first line of apex class. The apex and VF pages would automatically obey the rules and dispaly the related data that the user have access to.
Thanks.
All Answers
Sharing rules apply to all standard and custom objects.
Make sure you include "with sharing" key word in your first line of apex class. The apex and VF pages would automatically obey the rules and dispaly the related data that the user have access to.
Thanks.
Hi,
"With sharing" key is in every class, but sharing rulles don't apply.
Thanks
It's my mistake on that class there was no "With sharing"
You are right! Thanks