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
kpr1kpr1 

Handle for an approval process that has been submitted

Hi,

 

I have an approval process on Opportunity object. I am using Apex in a visualforce controller "controller1" to sumbit the record for approval. 

 

I have another visualforce page "page2" which needs to be displayed to the manager for approval. Is there any way I can get a handle on the approval process that was  submitted in "controller1"?

 

(I was thinking of using the same controller for both the pages and getting the approval request to process. But the submittal for approval and the actual approval take place at different times and I don't know if the controller would be running in memory all the time?)

 

Any help appreciated!

 

Thanks in advance

 

Prashanth