Skip to content

Instantly share code, notes, and snippets.

@TheShubhamVsnv
Last active January 17, 2024 14:55
Show Gist options
  • Save TheShubhamVsnv/3d76fb10674cbc564bd01601508cb4ba to your computer and use it in GitHub Desktop.
Save TheShubhamVsnv/3d76fb10674cbc564bd01601508cb4ba to your computer and use it in GitHub Desktop.
/*
With Sharing is used in Apex classes to enforce sharing rules of the current user.
It ensures that the code runs with the sharing rules of the current user, limiting
access to records based on their sharing settings.
*/
with sharing class MySharingClass {
// Code logic with sharing rules!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment