• Ilan Levi-Mazloum 9
  • NEWBIE
  • 0 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 1
    Likes Given
  • 3
    Questions
  • 1
    Replies
Hi,

I am writing a trigger handler class for trigger in apex. But I am confused, whether to use 'With Sharing' or 'Without Sharing' keyword on handler class? In apex, trigger runs in system context so trigger handler should run in system context. So to run trigger handler in system context 'Without Sharing' keyword must be used on it. But almost all places, I have seen that 'with sharing' keyword gets used on trigger handler class.

Would anyone help me? Please.