2

I am having a requirement, where we have to write a Custom visualforce Page which will do the same thing as Standard "Reassign Approval Request" page. Below is the screenshot of Standard Reaasign page.

enter image description here I am writing this functionality on opportunity, so I can easily get the Related to and Craeted by fields, But How can I get the fields like "Approver", "Assigned Approver" and "Comment field".

0
2

You'd have to check the tables used in approval processes: http://www.salesforce.com/us/developer/docs/api/Content/sforce_api_erd_process.htm

For example query the ProcessInstanceStep (best would be to just start sniffing around in your system, perform a reassignment and figure out what changes in these tables). "Step" doesn't support updates but looks like "WorkItem" table does so fingers crossed?

Another important thing could be the Apex class for Approvals, here's sample usage.


It's been a while since I played with Apex solutions around approvals... Around 1 year ago I've posted an answer for customized approval page, maybe you will be able to salvage something from the code: Custom fields not useable in Approve/Reject Approval Request

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.