Can triggers tell if a Workflow invoked them?

Is there anything available to us in Apex that can be used to determine if a trigger was fired by Workflow/Process Builder?


Triggers (which represent the domain layer in a Separation of Concerns architecture) should not have to know how they were invoked as they could be invoked via

  • Web or REST service DML
  • VF controller
  • Standard controller
  • Data Loader
  • AJAX Toolkit
  • Asynchronous process

Source : Link , Question Author : Mossi , Answer Author : cropredy

Leave a Comment