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
Stuart GrimshawStuart Grimshaw 

Is it possible to use static methods on an Approval Process's Entry Criteria?

If I have a static method on an Apex class, can I use it in an Approval Process's entry criteria?
Best Answer chosen by Stuart Grimshaw
JimRaeJimRae
Can you clarify what you mean? You can't call any apex method from inside the UI driven Approval process.  You could use a static method if you had a trigger based approval process.
If you are using the standard UI, you would need the result of the static method to write into a field on the record being submitted.

All Answers

JimRaeJimRae
Can you clarify what you mean? You can't call any apex method from inside the UI driven Approval process.  You could use a static method if you had a trigger based approval process.
If you are using the standard UI, you would need the result of the static method to write into a field on the record being submitted.
This was selected as the best answer
Stuart GrimshawStuart Grimshaw
I am using te UI driven Approval process.

Thanks for the reply.