2

I want to show Approval History related list to customer portal user. How can I do that?

  • Are you looking to show approvals that are assigned to the user, or records that they have submitted for approval? – Bob Buzzard Oct 25 '12 at 7:44
  • Yeah! portal user can submit their records for approval and approver (system admin) can comment and approver their items. So I want to show comments made by approver to portal users. – doga Oct 25 '12 at 8:17
4

According to this knowledge article:

http://help.salesforce.com/apex/HTViewSolution?id=000004489&language=en_US

you can add the approval history related list to the page layout, but when I've done this it hasn't had any effect. Regardless of how I configure my approval process, or if I (even to the point of naming the submitters as customer portal users) I can't get it to appear. This fits with the information in the 'Understanding User License Types' which shows approvals only being available for partner portal license types:

http://na6.salesforce.com/help/doc/en/users_understanding_license_types.htm

I then tried creating a visualforce page backed by a standard controller that accessed the ProcessSteps relationship of the record, but this put out no values even though I could see them in the schema browser, which indicates again that the license type precludes access to this data.

I did get something working using an extension controller that extracted the ProcessSteps related records, converted them to a custom class and then using those class instances on a Visualforce page embedded into the portal page layout. I've never used this in production though as it feels like I'm breaching the spirit, if not the letter of the license agreement.

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.