function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mary Ardelyn NabongMary Ardelyn Nabong 

Programmatically how to determin if workflow is on or off

Hi,

Is there a way to determine either by metadata, table or fields if workflow is on or off meaning activated or not?

Thanks,
SalesFORCE_enFORCErSalesFORCE_enFORCEr
Use metadata api to query WorkflowRule object.
Anupama SamantroyAnupama Samantroy
The workflow rule object does not have a property to tell if the workflow is active.