You need to sign in to do that
Don't have an account?
trinity
Approval process entry criteria information using Apex code
Is it possible to get metadata information about the Workflow and Approval process through apex code? I would like to get entry criteria for an approval process dynamically in my code.
You can submit records to an Approval Process via Apex (workflows are automatically triggered with each DML statement), but you can't query the 'metadata' information (like Entry Criteria) regarding an Approval/Workflow Process with Apex. You could try the metadata API to query some amount of metadata regarding Workflow Rules, but even the Metadata API does not support Approval Processes.