ViewState in Salesforce

By | January 27, 2020

What is ViewState?

Any data that is displayed on visualforce page first it will go to view state state then it will show on visual force.

Datalimit is 170KB.

Above 170KB it will throw error.

By using pagination we can avoid viewstate error.

Otherways in pagination using are with SOQL:limit and offset.

Drawbacks :

Every time soql query has to be run

It will accept only 2000 offset.

Share this...
Share on Facebook
Facebook
Email this to someone
email

2 thoughts on “ViewState in Salesforce

  1. Sheree Finken

    Thank you for another informative blog. Where else could I get that kind of info written in such a perfect way? I have a project that I’m just now working on, and I’ve been on the look out for such info.

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *