• snodskov_secunia
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 4
    Replies
We are using Communities and have a Trigger in place preventing Users with certain Profiles from deleting specific records (in this case a Question record).

The Trigger uses "addError" to prevent a record from being deleted. So, in short, the code validates if the User trying to delete the Question has a Profile that allows this or not. If not, the record is marked using addError along with an error message.

This works perfectly for our internal users but when a Community User tries to delete a Question they get this error message instead of the more userfriendly one:

"An internal server error has occurred
Error ID: 201458473-277641 (853642360)"

My question is this: Do we need to do something special in order to display the userfriendly error message defined when calling addError?

Does it have to do with the latest release of Communities? We found that displaying validation errors also was a bit tricky with the latest release.

Thanks.

/Søren Nødskov Hansen

Has anyone done dynamic approval routing based on a custom field on a record instead of using the User's approver?