Skip to content

Instantly share code, notes, and snippets.

@TheShubhamVsnv
Last active January 17, 2024 14:56
Show Gist options
  • Save TheShubhamVsnv/9812e13d647106860d058a311973dcad to your computer and use it in GitHub Desktop.
Save TheShubhamVsnv/9812e13d647106860d058a311973dcad to your computer and use it in GitHub Desktop.
/*
Without Sharing is used in Apex classes to ignore sharing rules.
When this modifier is used, the code runs in system mode and has
access to all records regardless of the user's sharing settings.
*/
without sharing class MyNoSharingClass {
// Code logic without sharing restrictions!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment