You need to sign in to do that
Don't have an account?
Tena Wolver 32
Invalid type: Approval.ProcessSubmitRequest
I get the error Invalid type: Approval.ProcessSubmitRequest when I have the statement
Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
which I need to submit a request. I don't understand why. Even Salesforces own documentation show this way to create the object. Any help?
Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
which I need to submit a request. I don't understand why. Even Salesforces own documentation show this way to create the object. Any help?
Seems like there is, it is conflicting with the approval object, please rename that class to something else.
All Answers
Seems like there is, it is conflicting with the approval object, please rename that class to something else.
Here it got 2 matches and was not able to identify which one to refer, throwing that particular error.
Usually, classes having static methods are executed directly without instantiating the object.
Something like : ClassName.ObjectName();
Do mark my answer as best answer if it helped you.
So as to help if someone facing the same problem hits this page.