You need to sign in to do that
Don't have an account?
Smart Fellow
Dear team of Community, I want to learn how to write a code in Apex using With sharing and Without sharing ?
Sample Example please
function readOnly(count){ }
You need to sign in to do that
Don't have an account?
it's very simple.
Use with sharing keyword when you want to write a class using with sharing
Here is simple syntax for both methods--
public with sharing class ClassName{
//your awesome logic goes here
}
public class ClassName{
//your awesome logic goes here
}