What is an Execution Context in Salesforce?

What is an Execution Context?

Why do I have to know the Execution Context?

What starts an Execution Context?

  • Triggers
  • Asynchronous Calls (Batch Apex, Future method, Queuable Apex,Scheduled Apex)
  • Web Service
  • Visualforce and Lightning Components
  • Processes, Flows and Workflows
  • Anonymous Apex (ex. Code executed on the Developer Console)
  1. Understand Execution Context
  2. Triggers and Order of Execution

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store