You need to sign in to do that
Don't have an account?

Obtain WF Rule Criteria from Apex
Hi,
Would it be possible to retrieve the criteria that triggers a workflow rule from within an Apex Class? I'm wanting to display a string similar to what you see on the WF pages on a VF page:
(Plan Process: Plan Stage Name equals Implementation) and (Plan Process: 1st Payroll Upload Date not equal to null)
No, the only way to get to wf rule criteria is through the metadata api.
All Answers
No, the only way to get to wf rule criteria is through the metadata api.
Do you have any links to reference material to do this? I've been browsing, but can only find items for approval processes. Any guidance through documentation or examples would be much appreciated!
The metadata api has a workflow object that includes the criteria for a workflow rule.