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
David Loutzenhiser 2David Loutzenhiser 2 

Standard Object(s) for Workflow Rules

I want to use code to update some workflow rules.  Can someone tell me which standard object stores workflow rules?
Best Answer chosen by David Loutzenhiser 2
ANUTEJANUTEJ (Salesforce Developers) 
Hi David,

>> https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_workflowrule.htm

As mentioned "Represents a workflow rule that is used to fire off a specific workflow action when the specified criteria is met. Includes access to the associated WorkflowRule object in Salesforce Metadata API."

Also, I would suggest you to look at this link: https://salesforce.stackexchange.com/questions/51384/writing-workflows-in-apex

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.

All Answers

ANUTEJANUTEJ (Salesforce Developers) 
Hi David,

>> https://developer.salesforce.com/docs/atlas.en-us.api_tooling.meta/api_tooling/tooling_api_objects_workflowrule.htm

As mentioned "Represents a workflow rule that is used to fire off a specific workflow action when the specified criteria is met. Includes access to the associated WorkflowRule object in Salesforce Metadata API."

Also, I would suggest you to look at this link: https://salesforce.stackexchange.com/questions/51384/writing-workflows-in-apex

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.
This was selected as the best answer
David Loutzenhiser 2David Loutzenhiser 2
Thank you Anutej!   That's what I needed to know.