2

I would know if there is a method to know size of ViewState in a Controller Apex.

I read Limit Apex Class but I don't find a method about this scope.

I want debug a Community User and I don't find a way to active Developer Mode on it. Thanks!

5
  • No, you cannot know the size of the view state in Apex.
    – Adrian Larson
    Sep 21 '17 at 15:05
  • Just curious, why don't you just inspect the view state as a standard user. It shouldn't be radically different?
    – Adrian Larson
    Sep 21 '17 at 17:15
  • Because I receive error page only for a User.
    – vt89
    Sep 21 '17 at 17:34
  • see salesforce.stackexchange.com/questions/8992/… for workarounds
    – cropredy
    Sep 22 '17 at 1:56
  • I would recommend a more detailed question, including some code, so that we can possibly identify why a specific user might be getting a larger view state than others. Sep 22 '17 at 3:16

Your Answer

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

Browse other questions tagged or ask your own question.