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
imishraimishra 

Custom button to Approve/Reject

Hi,
I need to create a custom button in the opportunity detail page which would redirect me to the approval page with the same approve/reject button with the comments field.
Can someone help with id that needs to be passed to the approval page URL.

Thanks.
MagulanDuraipandianMagulanDuraipandian
http://www.infallibletechie.com/2012/04/approval-process-using-apex.html

http://www.infallibletechie.com/2012/10/calling-apex-method-from-custom-buttom.html

If this solves your problem, kindly mark it as the best answer.

Regards,
Magulan
http://www.infallibletechie.com
imishraimishra
Thanks Magu.
But this link shows the the"Submit for Approval" functionality. What i need is the Approve/Reject page, where we go to approve/Reject a record.


imishraimishra
Hi,
I want my custom button to redirect to the below page:User-added image
 
RajPatelRajPatel
Hi Imishra,
Did you find solution for this ?
I have a similar situation. Can you help me.
RobAlexanderRobAlexander

/p/process/ProcessInstanceWorkitemWizardStageManager?id={!ProcessInstanceWorkItem.Id}&isdtp=vw